mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
fix ifup/down for ppp-based stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2536 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -12,12 +12,7 @@ if=$(nvram get ${type}_ifname)
|
||||
|
||||
case "$if_proto" in
|
||||
pppoa) hotplug_dev unregister atm0; exit 0 ;;
|
||||
pppoe)
|
||||
[ "$(nvram get pppoe_atm)" = 1 ] && {
|
||||
hotplug_dev unregister atm0
|
||||
exit
|
||||
}
|
||||
;;
|
||||
""|none) exit 0;;
|
||||
esac
|
||||
|
||||
if [ "${if%%[0-9]}" = "br" ]; then
|
||||
|
||||
@@ -14,12 +14,13 @@ if=$(nvram get ${type}_ifname)
|
||||
|
||||
case "$if_proto" in
|
||||
pppoa) hotplug_dev register atm0; exit 0 ;;
|
||||
pppoe)
|
||||
[ "$(nvram get pppoe_atm)" = 1 ] && {
|
||||
pppoe)
|
||||
ifconfig nas0 2>&- >&- || {
|
||||
hotplug_dev register atm0
|
||||
exit
|
||||
exit 0
|
||||
}
|
||||
;;
|
||||
none|"") exit 0;;
|
||||
esac
|
||||
|
||||
if [ "${if%%[0-9]}" = "br" ]; then
|
||||
|
||||
Reference in New Issue
Block a user