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 [ -z "$VERBOSE" ] || set -x
case "$MODE" in case "$PHASE" in
start) start $impl ;; up) start $impl ;;
stop) stop $impl ;; down) stop $impl ;;
*) echo "unknown mode $MODE" ;; *) ;;
esac esac