From a9f59b38e4836c95ffca8edf09562bb9358a82ad Mon Sep 17 00:00:00 2001
From: Steve Muir <smuir@cs.princeton.edu>
Date: Mon, 1 Dec 2003 22:16:47 +0000
Subject: [PATCH] preun commands should be run when upgrading as well as
 uninstalling a package

---
 pl_sshd.spec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pl_sshd.spec b/pl_sshd.spec
index 18fddff..8729eab 100644
--- a/pl_sshd.spec
+++ b/pl_sshd.spec
@@ -13,7 +13,7 @@ SSH server configuration for PlanetLab nodes.  Configures an automounted
 directory as source for authorized_keys files and points sshd to that
 directory.
 
-$Header: /cvs/pl_sshd/pl_sshd.spec,v 1.2 2003/12/01 14:56:00 sjm-pl_sshd Exp $.
+$Header: /cvs/pl_sshd/pl_sshd.spec,v 1.3 2003/12/01 21:22:53 sjm-pl_sshd Exp $.
 %prep
 %setup
 
@@ -80,7 +80,7 @@ fi
 %preun
 RUNLEVEL=`/sbin/runlevel`
 
-if [ "$1" = 0 ]; then
+if [ "$1" -ge "0" ]; then
 	#
 	# stop pl_sshd, remove it from rcX.d init dirs, remove link
 	# to sshd's pam config
-- 
2.47.0