Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37047972
en ru br
ALT Linux repositórios
S:5.2.8-alt1
5.0: 3.4.8-alt1
4.0: 3.4.5-alt1

Group :: Segurança/Rede
RPM: shorewall

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

#!/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

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009