mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
23 lines
334 B
Plaintext
23 lines
334 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
. /etc/conf.d/ebtables
|
||
|
|
||
|
case $1 in
|
||
|
start)
|
||
|
ebtables-restore < "$CONFIG_FILE"
|
||
|
;;
|
||
|
stop)
|
||
|
[[ $SAVE_ON_STOP =~ [yY][eE][sS] ]] && $0 save
|
||
|
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:
|