Update executors to reflect new create/destroy phase.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
parent
e6c6f49143
commit
af94d760d0
7 changed files with 37 additions and 18 deletions
|
@ -1,8 +1,16 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
[ -z "$IF_PPP_PROVIDER" ] && exit 0
|
||||
|
||||
case "$PHASE" in
|
||||
pre-up) ${MOCK} pon $IF_PPP_PROVIDER ;;
|
||||
post-down) ${MOCK} poff $IF_PPP_PROVIDER ;;
|
||||
depend) echo "$IF_PPP_PHYSDEV" ;;
|
||||
create)
|
||||
${MOCK} pon $IF_PPP_PROVIDER
|
||||
;;
|
||||
destroy)
|
||||
${MOCK} poff $IF_PPP_PROVIDER
|
||||
;;
|
||||
depend)
|
||||
echo "$IF_PPP_PHYSDEV"
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue