diff --git a/Shorewall-lite/install.sh b/Shorewall-lite/install.sh index ec4338b43..178c8517f 100755 --- a/Shorewall-lite/install.sh +++ b/Shorewall-lite/install.sh @@ -379,6 +379,7 @@ delete_file ${DESTDIR}/usr/share/$PRODUCT/xmodules mkdir -p ${DESTDIR}${CONFDIR}/$PRODUCT mkdir -p ${DESTDIR}${SHAREDIR}/$PRODUCT mkdir -p ${DESTDIR}${LIBEXECDIR}/$PRODUCT +mkdir -p ${DESTDIR}${SBINDIR} mkdir -p ${DESTDIR}${VARDIR} chmod 755 ${DESTDIR}${CONFDIR}/$PRODUCT @@ -529,7 +530,11 @@ fi delete_file ${DESTDIR}${SHAREDIR}/$PRODUCT/lib.common delete_file ${DESTDIR}${SHAREDIR}/$PRODUCT/lib.cli delete_file ${DESTDIR}${SHAREDIR}/$PRODUCT/wait4ifup -delete_file ${DESTDIR}${SBINDIR}/$PRODUCT + +# +# Creatae the symbolic link for the CLI +# +ln -sf shorewall ${DESTDIR}${SBINDIR}/${PRODUCT} # # Note -- not all packages will have the SYSCONFFILE so we need to check for its existance here diff --git a/Shorewall/install.sh b/Shorewall/install.sh index cb496efea..14366aa92 100755 --- a/Shorewall/install.sh +++ b/Shorewall/install.sh @@ -464,7 +464,6 @@ if [ -z "$first_install" ]; then delete_file ${DESTDIR}/usr/share/shorewall6/lib.cli delete_file ${DESTDIR}/usr/share/shorewall6/lib.common delete_file ${DESTDIR}/usr/share/shorewall6/wait4ifup - delete_file ${DESTDIR}/${SBINDIR}/shorewall6 fi delete_file ${DESTDIR}/usr/share/$PRODUCT/prog.header6 @@ -1101,6 +1100,10 @@ if [ $PRODUCT = shorewall6 ]; then # Symbolically link 'functions' to lib.base # ln -sf lib.base ${DESTDIR}${SHAREDIR}/$PRODUCT/functions + # + # And create a sybolic link for the CLI + # + ln -sf shorewall ${DESTDIR}${SBINDIR}/shorewall6 fi if [ -d Perl ]; then