dhcp: react to $PHASE not legacy $MODE
This commit is contained in:
parent
96392f0dd1
commit
00c1d0f58c
1 changed files with 4 additions and 4 deletions
|
@ -50,8 +50,8 @@ impl=$(determine_implementation)
|
|||
|
||||
[ -z "$VERBOSE" ] || set -x
|
||||
|
||||
case "$MODE" in
|
||||
start) start $impl ;;
|
||||
stop) stop $impl ;;
|
||||
*) echo "unknown mode $MODE" ;;
|
||||
case "$PHASE" in
|
||||
up) start $impl ;;
|
||||
down) stop $impl ;;
|
||||
*) ;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue