mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-24 16:43:21 +01:00
20 lines
256 B
Plaintext
20 lines
256 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
PRODUCT=$1
|
||
|
|
||
|
. /etc/default/${PRODUCT}
|
||
|
|
||
|
if [ "$SAFESTOP" = 1 ]; then
|
||
|
COMMAND=stop
|
||
|
else
|
||
|
COMMAND=clear
|
||
|
fi
|
||
|
|
||
|
if [ "${PRODUCT}" = shorewall6 ]; then
|
||
|
EXEC="/sbin/shorewall -6"
|
||
|
else
|
||
|
EXEC="/sbin/${PRODUCT}"
|
||
|
fi
|
||
|
|
||
|
exec ${EXEC} ${OPTIONS} ${COMMAND}
|