From fd696fbee73a06c22525c6039ff36c73550b6838 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 18 May 2010 19:08:20 -0700 Subject: [PATCH] Fix a silly bug in uninstall.sh Signed-off-by: Tom Eastep --- Shorewall-init/uninstall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall-init/uninstall.sh b/Shorewall-init/uninstall.sh index 69b33952d..b74070ea0 100755 --- a/Shorewall-init/uninstall.sh +++ b/Shorewall-init/uninstall.sh @@ -76,8 +76,8 @@ if [ -n "$INITSCRIPT" ]; then remove_file $INITSCRIPT fi -$(ls -l /sbin/ifup-local) | grep -q /usr/share/shorewall-init && removefile /sbin/ifup-local -$(ls -l /sbin/ifdown-local) | grep -q /usr/share/shorewall-init && removefile /sbin/ifdown-local +[ -f /sbin/ifup-local ] && $(ls -l /sbin/ifup-local) | grep -q /usr/share/shorewall-init && removefile /sbin/ifup-local +[ -f /sbin/ifdown-local ] && $(ls -l /sbin/ifdown-local) | grep -q /usr/share/shorewall-init && removefile /sbin/ifdown-local remove_file /etc/default/shorewall-init remove_file /etc/sysconfig/shorewall-init