summarylogtreecommitdiffstats
path: root/arptables.systemd
diff options
context:
space:
mode:
authorSébastien Luttringer2021-01-19 02:52:56 +0100
committerSébastien Luttringer2021-01-19 03:00:00 +0100
commit5f0df1a5f268093da956a18e71304f9a48e7fa76 (patch)
tree9f0a4724db96cb81a45cd2755c5a43bc47d02d88 /arptables.systemd
downloadaur-5f0df1a5f268093da956a18e71304f9a48e7fa76.tar.gz
Move arptables from [extra] to [unsupported]
Diffstat (limited to 'arptables.systemd')
-rw-r--r--arptables.systemd21
1 files changed, 21 insertions, 0 deletions
diff --git a/arptables.systemd b/arptables.systemd
new file mode 100644
index 00000000000..6a40192570a
--- /dev/null
+++ b/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: