mirror of https://github.com/hak5/openwrt-owl.git
parent
3cc0f965fb
commit
969a4d1c2a
|
@ -175,8 +175,8 @@ do_unregister() {
|
|||
|
||||
case "$IFPROTO" in
|
||||
pppoe|pppoa|pptp)
|
||||
killall ifup.${IFPROTO}
|
||||
killall pppd
|
||||
killall ifup.${IFPROTO} 2>&- >&-
|
||||
killall pppd 2>&- >&-
|
||||
;;
|
||||
dhcp)
|
||||
[ -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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue