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:
Tuomo Soini 2020-04-16 23:29:19 +03:00 committed by Tom Eastep
parent 6841fc9eb2
commit 64bf5882db
2 changed files with 16 additions and 2 deletions

View File

@ -90,7 +90,14 @@ case $0 in
COMMAND=down COMMAND=down
;; ;;
*dispatcher.d*) *dispatcher.d*)
COMMAND="$2" case "$2" in
up|down)
COMMAND="$2"
;;
*)
exit 0
;;
esac
;; ;;
*) *)
exit 0 exit 0

View File

@ -120,7 +120,14 @@ case $0 in
case $0 in case $0 in
*dispatcher.d*) *dispatcher.d*)
INTERFACE="$1" INTERFACE="$1"
COMMAND="$2" case "$2" in
up|down)
COMMAND="$2"
;;
*)
exit 0
;;
esac
;; ;;
*if-up.d*) *if-up.d*)
COMMAND=up COMMAND=up