summaryrefslogtreecommitdiff
path: root/extra/ebtables/ebtables.systemd
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-07-25 04:03:32 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-07-25 04:03:32 +0000
commit29cefdccedfcb48822a8da80b259ed0bb0f73266 (patch)
treeeabeaf9a2ee1319f8cc0f3e05018588aa5a169c9 /extra/ebtables/ebtables.systemd
parentd256eaa80219eb28cbfb4f9474acc6fb41c63d3c (diff)
Fri Jul 25 03:59:36 UTC 2014
Diffstat (limited to 'extra/ebtables/ebtables.systemd')
-rw-r--r--extra/ebtables/ebtables.systemd21
1 files changed, 21 insertions, 0 deletions
diff --git a/extra/ebtables/ebtables.systemd b/extra/ebtables/ebtables.systemd
new file mode 100644
index 000000000..7c21ff967
--- /dev/null
+++ b/extra/ebtables/ebtables.systemd
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+CONFIG_FILE='/etc/ebtables.conf'
+
+case $1 in
+ start)
+ ebtables-restore < "$CONFIG_FILE"
+ ;;
+ stop)
+ ebtables -F
+ ;;
+ save)
+ ebtables-save > "$CONFIG_FILE"
+ ;;
+ *)
+ echo "usage: ${0##*/} {start|stop|save}" >&2
+ exit 1
+ ;;
+esac
+
+# vim:set ts=2 sw=2 ft=sh et: