mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-26 06:34:05 +02:00
fix ifup/down for ppp-based stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2536 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f415ff1978
commit
68ff71b074
@ -175,8 +175,8 @@ do_unregister() {
|
|||||||
|
|
||||||
case "$IFPROTO" in
|
case "$IFPROTO" in
|
||||||
pppoe|pppoa|pptp)
|
pppoe|pppoa|pptp)
|
||||||
killall ifup.${IFPROTO}
|
killall ifup.${IFPROTO} 2>&- >&-
|
||||||
killall pppd
|
killall pppd 2>&- >&-
|
||||||
;;
|
;;
|
||||||
dhcp)
|
dhcp)
|
||||||
[ -f /var/run/${INTERFACE}.pid ] && kill "$(cat /var/run/${INTERFACE}.pid)" 2>&- >&-
|
[ -f /var/run/${INTERFACE}.pid ] && kill "$(cat /var/run/${INTERFACE}.pid)" 2>&- >&-
|
||||||
|
@ -12,12 +12,7 @@ if=$(nvram get ${type}_ifname)
|
|||||||
|
|
||||||
case "$if_proto" in
|
case "$if_proto" in
|
||||||
pppoa) hotplug_dev unregister atm0; exit 0 ;;
|
pppoa) hotplug_dev unregister atm0; exit 0 ;;
|
||||||
pppoe)
|
""|none) exit 0;;
|
||||||
[ "$(nvram get pppoe_atm)" = 1 ] && {
|
|
||||||
hotplug_dev unregister atm0
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "${if%%[0-9]}" = "br" ]; then
|
if [ "${if%%[0-9]}" = "br" ]; then
|
||||||
|
@ -15,11 +15,12 @@ if=$(nvram get ${type}_ifname)
|
|||||||
case "$if_proto" in
|
case "$if_proto" in
|
||||||
pppoa) hotplug_dev register atm0; exit 0 ;;
|
pppoa) hotplug_dev register atm0; exit 0 ;;
|
||||||
pppoe)
|
pppoe)
|
||||||
[ "$(nvram get pppoe_atm)" = 1 ] && {
|
ifconfig nas0 2>&- >&- || {
|
||||||
hotplug_dev register atm0
|
hotplug_dev register atm0
|
||||||
exit
|
exit 0
|
||||||
}
|
}
|
||||||
;;
|
;;
|
||||||
|
none|"") exit 0;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "${if%%[0-9]}" = "br" ]; then
|
if [ "${if%%[0-9]}" = "br" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user