diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-06-26 14:47:00 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-06-26 14:47:00 +0000 |
commit | 2c42b21247e3a50c500f5dbea1549092022c30ad (patch) | |
tree | e0dfa683aaadb74fdedcd8428a95b629277addec /main/shorewall-shell/shorewall-shell.post-install | |
parent | b980464b680a4f7f7187d0c5107a1b1840139ba1 (diff) | |
download | aports-2c42b21247e3a50c500f5dbea1549092022c30ad.tar.bz2 aports-2c42b21247e3a50c500f5dbea1549092022c30ad.tar.xz |
main/shorewall-shell: add option to disable saving/restoring default route
When starting, shorewall will save all default routes. When stop, it
will try to restore it. But does it badly. On multiisp setups with pingu
it will break things.
We (ab)use the RESTORE_DEFAULT_ROUTE to make it possible to avoid
restoring the default route.
Diffstat (limited to 'main/shorewall-shell/shorewall-shell.post-install')
-rw-r--r-- | main/shorewall-shell/shorewall-shell.post-install | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/shorewall-shell/shorewall-shell.post-install b/main/shorewall-shell/shorewall-shell.post-install new file mode 100644 index 0000000000..34f18779ad --- /dev/null +++ b/main/shorewall-shell/shorewall-shell.post-install @@ -0,0 +1,6 @@ +#!/bin/sh + +# loglevel needs to be lowercase +if grep -q INFO /etc/shorewall/rules; then + sed '/^[^#].*[[:space:]]\+INFO/s/\([[:space:]]\)\+INFO[[:space:]]*$/\1info/' \ + /etc/shorewall/policy |