diff --git a/Shorewall-lite/install.sh b/Shorewall-lite/install.sh index 2a202d247..b1201cde7 100755 --- a/Shorewall-lite/install.sh +++ b/Shorewall-lite/install.sh @@ -187,17 +187,6 @@ DEBIAN= OWNERSHIP="-o $OWNER -g $GROUP" -if [ -d /etc/apt -a -e /usr/bin/dpkg ]; then - DEBIAN=yes -elif [ -f /etc/slackware-version ] ; then - DEST="/etc/rc.d" - INIT="rc.firewall" -elif [ -f /etc/arch-release ] ; then - DEST="/etc/rc.d" - INIT="shorewall-lite" - ARCHLINUX=yes -fi - if [ -n "$PREFIX" ]; then if [ `id -u` != 0 ] ; then echo "Not setting file owner/group permissions, not running as root." @@ -206,6 +195,15 @@ if [ -n "$PREFIX" ]; then install -d $OWNERSHIP -m 755 ${PREFIX}/sbin install -d $OWNERSHIP -m 755 ${PREFIX}${DEST} +elif [ -d /etc/apt -a -e /usr/bin/dpkg ]; then + DEBIAN=yes +elif [ -f /etc/slackware-version ] ; then + DEST="/etc/rc.d" + INIT="rc.firewall" +elif [ -f /etc/arch-release ] ; then + DEST="/etc/rc.d" + INIT="shorewall-lite" + ARCHLINUX=yes fi #