openwrtv3/package/ppp/files/etc/ppp/ip-up
2016-03-20 17:29:15 +01:00

9 lines
204 B
Bash
Executable file

#!/bin/sh
[ -z "$6" ] || env -i ACTION="ifup" INTERFACE="$6" PROTO=ppp /sbin/hotplug "iface"
[ -d /etc/ppp/ip-up.d ] && {
for SCRIPT in /etc/ppp/ip-up.d/*
do
[ -x "$SCRIPT" ] && "$SCRIPT" $@
done
}