forked from extern/shorewall_code
Change the preferred way to remove sysvinit script
- Correct typo in command - Correct spacing Signed-off-by: Matt Darfeuille <matdarf@gmail.com> Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
a839a6f7d0
commit
0b3a32b365
@ -143,14 +143,14 @@ FIREWALL=${CONFDIR}/init.d/$PRODUCT
|
|||||||
|
|
||||||
if [ -f "$FIREWALL" ]; then
|
if [ -f "$FIREWALL" ]; then
|
||||||
if [ $configure -eq 1 ]; then
|
if [ $configure -eq 1 ]; then
|
||||||
if [ $HOST = openwrt ]; then
|
if [ $HOST = openwrt ] ; then
|
||||||
if /etc/init.d/$PRODUCT enabled; then
|
if /etc/init.d/$PRODUCT enabled; then
|
||||||
/etc/init.d/$PRODUCT disable
|
/etc/init.d/$PRODUCT disable
|
||||||
fi
|
fi
|
||||||
elif mywhich updaterc.d ; then
|
|
||||||
updaterc.d ${PRODUCT} remove
|
|
||||||
elif mywhich insserv ; then
|
elif mywhich insserv ; then
|
||||||
insserv -r $FIREWALL
|
insserv -r $FIREWALL
|
||||||
|
elif mywhich update-rc.d ; then
|
||||||
|
update-rc.d ${PRODUCT} remove
|
||||||
elif mywhich chkconfig ; then
|
elif mywhich chkconfig ; then
|
||||||
chkconfig --del $(basename $FIREWALL)
|
chkconfig --del $(basename $FIREWALL)
|
||||||
fi
|
fi
|
||||||
|
@ -167,10 +167,10 @@ fi
|
|||||||
|
|
||||||
if [ -f "$FIREWALL" ]; then
|
if [ -f "$FIREWALL" ]; then
|
||||||
if [ $configure -eq 1 ]; then
|
if [ $configure -eq 1 ]; then
|
||||||
if mywhich updaterc.d ; then
|
if mywhich insserv ; then
|
||||||
updaterc.d ${PRODUCT} remove
|
|
||||||
elif mywhich insserv ; then
|
|
||||||
insserv -r $FIREWALL
|
insserv -r $FIREWALL
|
||||||
|
elif mywhich update-rc.d ; then
|
||||||
|
update-rc.d ${PRODUCT} remove
|
||||||
elif mywhich chkconfig ; then
|
elif mywhich chkconfig ; then
|
||||||
chkconfig --del $(basename $FIREWALL)
|
chkconfig --del $(basename $FIREWALL)
|
||||||
fi
|
fi
|
||||||
|
@ -159,10 +159,10 @@ fi
|
|||||||
|
|
||||||
if [ -f "$FIREWALL" ]; then
|
if [ -f "$FIREWALL" ]; then
|
||||||
if [ $configure -eq 1 ]; then
|
if [ $configure -eq 1 ]; then
|
||||||
if mywhich updaterc.d ; then
|
if mywhich insserv ; then
|
||||||
updaterc.d ${PRODUCT} remove
|
|
||||||
elif mywhich insserv ; then
|
|
||||||
insserv -r $FIREWALL
|
insserv -r $FIREWALL
|
||||||
|
elif mywhich update-rc.d ; then
|
||||||
|
update-rc.d ${PRODUCT} remove
|
||||||
elif mywhich chkconfig ; then
|
elif mywhich chkconfig ; then
|
||||||
chkconfig --del $(basename $FIREWALL)
|
chkconfig --del $(basename $FIREWALL)
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user