dhcp: react to $PHASE not legacy $MODE

This commit is contained in:
Ariadne Conill 2020-07-25 03:08:32 -06:00
parent 96392f0dd1
commit 00c1d0f58c

View file

@ -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