From bcf419fbce6e7a9e8bbca1ecb9fa6ff1f03ee9df Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 18 May 2010 08:16:31 -0700 Subject: [PATCH] Correct problems with SuSE init. Signed-off-by: Tom Eastep --- Shorewall-init/ifupdown.sh | 2 +- Shorewall-init/install.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Shorewall-init/ifupdown.sh b/Shorewall-init/ifupdown.sh index 2feaabe35..a9e6dbbe6 100644 --- a/Shorewall-init/ifupdown.sh +++ b/Shorewall-init/ifupdown.sh @@ -54,7 +54,7 @@ elif [ -f /etc/SuSE-release ]; then # # SuSE ifupdown system # - $IFACE = "$2" + IFACE="$2" case $0 in *if-up.d*) diff --git a/Shorewall-init/install.sh b/Shorewall-init/install.sh index 5c02807aa..d5241e8e8 100755 --- a/Shorewall-init/install.sh +++ b/Shorewall-init/install.sh @@ -221,7 +221,7 @@ if [ -z "$DEBIAN" ]; then fi if [ -d ${PREFIX}/etc/sysconfig -a ! -f ${PREFIX}/etcsysconfig/shorewall-init ]; then - run_install $OWNERSHIP -m 0644 sysconfig /etc/default/shorewall-init + run_install $OWNERSHIP -m 0644 sysconfig /etc/sysconfig/shorewall-init fi fi @@ -234,7 +234,7 @@ if [ -z "$PREFIX" ]; then ln -sf /usr/share/shorewall-init/ifupdown /etc/network/if-post-down.d/shorewall echo "Shorewall Init will start automatically at boot" else - if [ -n "$SUSE" ]; THEN + if [ -n "$SUSE" ]; then ln -sf /usr/share/shorewall-init/ifupdown /etc/sysconfig/network/if-up.d/shorewall ln -sf /usr/share/shorewall-init/ifupdown /etc/sysconfig/network/if-down.d/shorewall fi