#!/bin/sh . /etc/control.d/functions CONFIG=/etc/shorewall/shorewall.conf EXE=/etc/init.d/shorewall new_subst enabled \ '^STARTUP_ENABLED=Yes' \ 's,^STARTUP_ENABLED=No,STARTUP_ENABLED=Yes,' new_subst disabled \ '^STARTUP_ENABLED=No' \ 's,STARTUP_ENABLED=Yes,STARTUP_ENABLED=No,' new_help disabled "NO applay firewall rules on startup." new_help enabled "Applay firewall rules on startup" is_builtin_mode "$*" || [ "$*" != "`control_subst "$CONFIG" status`" ] || exit 0 control_subst "$CONFIG" "$*" || exit 1 is_builtin_mode "$*" || [ ! -x "$EXE" ] || "$EXE" condreload || exit 0 if [ "$*" = disabled ]; then "$EXE" clear || exit 0 fi if [ "$*" = enabled ]; then "$EXE" start || exit 0 fi