summaryrefslogtreecommitdiff
path: root/extra/ebtables/ebtables.systemd
blob: 7c21ff967f20752f06d04992b6939b76896fe406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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: