mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-11 16:18:13 +01:00
Fix /sbin/shorewall for 'MANGLE_ENABLED'
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8355 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
a59c0db7f0
commit
0fff85751a
@ -281,8 +281,19 @@ get_config() {
|
||||
[ -n "${HOSTNAME:=$(hostname)}" ]
|
||||
|
||||
[ -n "$RSH_COMMAND" ] || RSH_COMMAND='ssh ${root}@${system} ${command}'
|
||||
[ -n "$RCP_COMMAND" ] || RCP_COMMAND='scp ${files} ${root}@${system}:${destination}'
|
||||
[ -n "$RCP_COMMAND" ] || RCP_COMMAND='scp ${files} ${root}@${system}:${destination}'
|
||||
|
||||
case $MANGLE_ENABLED in
|
||||
Yes|yes)
|
||||
;;
|
||||
No|no)
|
||||
MANGLE_ENABLED=
|
||||
;;
|
||||
*)
|
||||
echo " ERROR: Invalid MANGLE_ENABLED setting ($MANGLE_ENABLED)" >&2
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user