summaryrefslogtreecommitdiff
path: root/pkg/linux
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-05-08 17:19:01 -0500
committerKali Kaneko <kali@leap.se>2014-05-12 11:25:31 -0500
commit66c94c7533a81cf9512b41090ccab4ee8360e611 (patch)
tree314b0d3a57cc2741585d1fd95013c9f5615b8edd /pkg/linux
parent745ae7f55836ff331d9176b52cc98df451a3c2ef (diff)
wait on shutdown until firewall is down
Diffstat (limited to 'pkg/linux')
-rwxr-xr-xpkg/linux/bitmask-root6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/linux/bitmask-root b/pkg/linux/bitmask-root
index 6942b99b..d9c8a61f 100755
--- a/pkg/linux/bitmask-root
+++ b/pkg/linux/bitmask-root
@@ -809,6 +809,12 @@ def main():
except Exception as ex:
bail("ERROR: could not stop firewall", ex)
+ elif command == "firewall_isup":
+ if ipv4_chain_exists(BITMASK_CHAIN):
+ print("%s: INFO: bitmask firewall is up" % (SCRIPT,))
+ else:
+ bail("INFO: bitmask firewall is down")
+
else:
bail("ERROR: No such command")
else: