ifupdown-ng/executor-scripts/linux/ppp

17 lines
199 B
Text
Raw Normal View History

2020-08-19 12:11:52 +00:00
#!/bin/sh
set -e
2020-08-19 12:11:52 +00:00
[ -z "$IF_PPP_PROVIDER" ] && exit 0
2020-08-19 12:11:52 +00:00
case "$PHASE" in
create)
${MOCK} pon $IF_PPP_PROVIDER
;;
destroy)
${MOCK} poff $IF_PPP_PROVIDER
;;
depend)
echo "$IF_PPP_PHYSDEV"
;;
2020-08-19 12:11:52 +00:00
esac