add support for multiple /etc/ppp/ip-{up,down} scripts.
SVN-Revision: 3804
This commit is contained in:
parent
549059cb74
commit
43cc80edc3
3 changed files with 16 additions and 0 deletions
|
@ -95,7 +95,9 @@ $(IPKG_PPP):
|
||||||
install -m0644 ./files/etc/ppp/options $(IDIR_PPP)/etc/ppp/
|
install -m0644 ./files/etc/ppp/options $(IDIR_PPP)/etc/ppp/
|
||||||
$(INSTALL_FILTER)
|
$(INSTALL_FILTER)
|
||||||
install -m0755 ./files/etc/ppp/ip-up $(IDIR_PPP)/etc/ppp/
|
install -m0755 ./files/etc/ppp/ip-up $(IDIR_PPP)/etc/ppp/
|
||||||
|
install -d -m0755 ./files/etc/ppp/ip-up.d
|
||||||
install -m0755 ./files/etc/ppp/ip-down $(IDIR_PPP)/etc/ppp/
|
install -m0755 ./files/etc/ppp/ip-down $(IDIR_PPP)/etc/ppp/
|
||||||
|
install -d -m0755 ./files/etc/ppp/ip-down.d
|
||||||
install -d -m0755 $(IDIR_PPP)/usr/sbin
|
install -d -m0755 $(IDIR_PPP)/usr/sbin
|
||||||
install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/pppd $(IDIR_PPP)/usr/sbin/
|
install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/pppd $(IDIR_PPP)/usr/sbin/
|
||||||
install -d -m0755 $(IDIR_PPP)/usr/lib/pppd
|
install -d -m0755 $(IDIR_PPP)/usr/lib/pppd
|
||||||
|
|
|
@ -1,2 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
[ -z "$6" ] || env -i ACTION="ifdown" INTERFACE="$6" PROTO=ppp /sbin/hotplug "iface"
|
[ -z "$6" ] || env -i ACTION="ifdown" INTERFACE="$6" PROTO=ppp /sbin/hotplug "iface"
|
||||||
|
|
||||||
|
[ -d /etc/ppp/ip-down.d ] && {
|
||||||
|
for SCRIPT in /etc/ppp/ip-down.d/*
|
||||||
|
do
|
||||||
|
[ -x "$SCRIPT" ] && "$SCRIPT" $@
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
|
@ -1,2 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
[ -z "$6" ] || env -i ACTION="ifup" INTERFACE="$6" PROTO=ppp /sbin/hotplug "iface"
|
[ -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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue