diff options
Diffstat (limited to 'community/arptables/arptables.systemd')
-rw-r--r-- | community/arptables/arptables.systemd | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/community/arptables/arptables.systemd b/community/arptables/arptables.systemd new file mode 100644 index 000000000..bc5acdbcf --- /dev/null +++ b/community/arptables/arptables.systemd @@ -0,0 +1,22 @@ +#!/bin/bash + +. /etc/conf.d/arptables + +case $1 in + start) + arptables-restore < "$CONFIG_FILE" + ;; + stop) + [[ $SAVE_ON_STOP =~ [yY][eE][sS] ]] && $0 save + 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: |