diff options
Diffstat (limited to 'extra/arptables/arptables.systemd')
-rw-r--r-- | extra/arptables/arptables.systemd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/extra/arptables/arptables.systemd b/extra/arptables/arptables.systemd new file mode 100644 index 000000000..6a4019257 --- /dev/null +++ b/extra/arptables/arptables.systemd @@ -0,0 +1,21 @@ +#!/bin/bash + +CONFIG_FILE='/etc/arptables.conf' + +case $1 in + start) + arptables-restore < "$CONFIG_FILE" + ;; + stop) + arptables-restore < /dev/null + ;; + save) + arptables-save > "$CONFIG_FILE" + ;; + *) + echo "usage: ${0##*/} {start|stop|save}" >&2 + exit 1 + ;; +esac + +# vim:set ts=2 sw=2 ft=sh et: |