set the DEVICE variable in hotplug events from ppp interfaces

SVN-Revision: 6667
master
Felix Fietkau 18 years ago
parent 7f0dd3fa45
commit 573c36539e
  1. 2
      package/ppp/files/etc/ppp/ip-down
  2. 2
      package/ppp/files/etc/ppp/ip-up

@ -1,5 +1,5 @@
#!/bin/sh
[ -z "$6" ] || env -i ACTION="ifdown" INTERFACE="$6" PROTO=ppp /sbin/hotplug-call "iface"
[ -z "$6" ] || env -i ACTION="ifdown" INTERFACE="$6" DEVICE="$1" PROTO=ppp /sbin/hotplug-call "iface"
[ -d /etc/ppp/ip-down.d ] && {
for SCRIPT in /etc/ppp/ip-down.d/*

@ -1,5 +1,5 @@
#!/bin/sh
[ -z "$6" ] || env -i ACTION="ifup" INTERFACE="$6" PROTO=ppp /sbin/hotplug-call "iface"
[ -z "$6" ] || env -i ACTION="ifup" INTERFACE="$6" DEVICE="$1" PROTO=ppp /sbin/hotplug-call "iface"
[ -d /etc/ppp/ip-up.d ] && {
for SCRIPT in /etc/ppp/ip-up.d/*

Loading…
Cancel
Save