diff --git a/Shorewall-init/ifupdown.sh b/Shorewall-init/ifupdown.sh index 4975fd781..bba943f0a 100644 --- a/Shorewall-init/ifupdown.sh +++ b/Shorewall-init/ifupdown.sh @@ -187,11 +187,6 @@ else fi for PRODUCT in $PRODUCTS; do - # - # For backward compatibility, lib.base appends the product name to VARDIR - # Save it here and restore it below - # - save_vardir=${VARDIR} if [ -x $VARDIR/$PRODUCT/firewall ]; then ( g_program=$PRODUCT g_readrc= @@ -202,7 +197,6 @@ for PRODUCT in $PRODUCTS; do mutex_off ) fi - VARDIR=${save_vardir} done exit 0 diff --git a/Shorewall-init/install.sh b/Shorewall-init/install.sh index ecf58dd44..4a026c468 100755 --- a/Shorewall-init/install.sh +++ b/Shorewall-init/install.sh @@ -347,7 +347,7 @@ fi cp ifupdown.sh ifupdown -d[ "${SHAREDIR}" = /usr/share ] || eval sed -i \'s\|/usr/share/\|${SHAREDIR}/\|\' ifupdown +[ "${SHAREDIR}" = /usr/share ] || eval sed -i \'s\|/usr/share/\|${SHAREDIR}/\|\' ifupdown mkdir -p ${DESTDIR}${LIBEXECDIR}/shorewall-init