diff --git a/Shorewall-core/uninstall.sh b/Shorewall-core/uninstall.sh index a008fe491..ca915cdc9 100755 --- a/Shorewall-core/uninstall.sh +++ b/Shorewall-core/uninstall.sh @@ -117,6 +117,7 @@ fi echo "Uninstalling Shorewall Core $VERSION" rm -rf ${SHAREDIR}/shorewall +rm -f ~/.shorewallrc echo "Shorewall Core Uninstalled" diff --git a/Shorewall-init/install.sh b/Shorewall-init/install.sh index 2a3c78285..2d1a044e3 100755 --- a/Shorewall-init/install.sh +++ b/Shorewall-init/install.sh @@ -572,9 +572,9 @@ if [ -z "$DESTDIR" ]; then cant_autostart fi elif [ $HOST = openwrt -a -f ${CONFDIR}/rc.common ]; then - /etc/init.d/shorewall-inir enable + /etc/init.d/$PRODUCT enable if /etc/init.d/shorewall-init enabled; then - echo "Shorrewall Init will start automatically at boot" + echo "$Product will start automatically at boot" else cant_autostart fi diff --git a/Shorewall-lite/install.sh b/Shorewall-lite/install.sh index 33ffc65e2..439d4a9f0 100755 --- a/Shorewall-lite/install.sh +++ b/Shorewall-lite/install.sh @@ -495,7 +495,7 @@ done # Install the Man Pages # -if [ -d manpages ]; then +if [ -d manpages -a -n "$MANDIR" ]; then cd manpages mkdir -p ${DESTDIR}${MANDIR}/man5/ ${DESTDIR}${MANDIR}/man8/ diff --git a/Shorewall/install.sh b/Shorewall/install.sh index ed454d303..bdd82715c 100755 --- a/Shorewall/install.sh +++ b/Shorewall/install.sh @@ -514,7 +514,7 @@ echo "Default config path file installed as ${DESTDIR}${SHAREDIR}/$PRODUCT/confi # Install the Standard Actions file # install_file actions.std ${DESTDIR}${SHAREDIR}/$PRODUCT/actions.std 0644 -echo "Standard actions file installed as ${DESTDIR}${SHAREDIR}d/$PRODUCT/actions.std" +echo "Standard actions file installed as ${DESTDIR}${SHAREDIR}/$PRODUCT/actions.std" cd configfiles @@ -1177,6 +1177,8 @@ fi # Install the Man Pages # +if [ -n "$MANDIR" ]; then + cd manpages [ -n "$INSTALLD" ] || mkdir -p ${DESTDIR}${MANDIR}/man5/ ${DESTDIR}${MANDIR}/man8/ @@ -1196,6 +1198,7 @@ done cd .. echo "Man Pages Installed" +fi if [ -d ${DESTDIR}${CONFDIR}/logrotate.d ]; then run_install $OWNERSHIP -m 0644 logrotate ${DESTDIR}${CONFDIR}/logrotate.d/$PRODUCT