diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-07-25 04:03:32 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-07-25 04:03:32 +0000 |
commit | 29cefdccedfcb48822a8da80b259ed0bb0f73266 (patch) | |
tree | eabeaf9a2ee1319f8cc0f3e05018588aa5a169c9 /extra/ebtables/ebtables.systemd | |
parent | d256eaa80219eb28cbfb4f9474acc6fb41c63d3c (diff) |
Fri Jul 25 03:59:36 UTC 2014
Diffstat (limited to 'extra/ebtables/ebtables.systemd')
-rw-r--r-- | extra/ebtables/ebtables.systemd | 21 |
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: |