forked from extern/shorewall_code
ifupdown: only handle up and down state changes
Signed-off-by: Tuomo Soini <tis@foobar.fi> Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
6841fc9eb2
commit
64bf5882db
@ -90,6 +90,8 @@ case $0 in
|
|||||||
COMMAND=down
|
COMMAND=down
|
||||||
;;
|
;;
|
||||||
*dispatcher.d*)
|
*dispatcher.d*)
|
||||||
|
case "$2" in
|
||||||
|
up|down)
|
||||||
COMMAND="$2"
|
COMMAND="$2"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -97,6 +99,11 @@ case $0 in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
*)
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[ -n "$LOGFILE" ] || LOGFILE=/dev/null
|
[ -n "$LOGFILE" ] || LOGFILE=/dev/null
|
||||||
|
@ -120,8 +120,15 @@ case $0 in
|
|||||||
case $0 in
|
case $0 in
|
||||||
*dispatcher.d*)
|
*dispatcher.d*)
|
||||||
INTERFACE="$1"
|
INTERFACE="$1"
|
||||||
|
case "$2" in
|
||||||
|
up|down)
|
||||||
COMMAND="$2"
|
COMMAND="$2"
|
||||||
;;
|
;;
|
||||||
|
*)
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
*if-up.d*)
|
*if-up.d*)
|
||||||
COMMAND=up
|
COMMAND=up
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user