summaryrefslogtreecommitdiff
path: root/package/ppp/files/etc/ppp/ip-up
blob: 34b4b50e15ae0f1d2af865f5487e10cf76a88304 (plain)
1
2
3
4
5
6
7
8
9
#!/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
}