X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/93c804a3668e6e200d03b674ced9d2b62a7963ac..525ee451c1d80d4cb5c99e5f4a901ddb21830d50:/package/ppp/files/etc/hotplug.d/atm/20-atm-modem diff --git a/package/ppp/files/etc/hotplug.d/atm/20-atm-modem b/package/ppp/files/etc/hotplug.d/atm/20-atm-modem index 45ef54239..4fd9b9c66 100644 --- a/package/ppp/files/etc/hotplug.d/atm/20-atm-modem +++ b/package/ppp/files/etc/hotplug.d/atm/20-atm-modem @@ -10,10 +10,13 @@ if [ "$ACTION" = "add" ]; then local up config_get_bool up "$ifc" up 0 + local auto + config_get_bool auto "$ifc" auto 1 + local proto config_get proto "$ifc" proto - if [ "$proto" = "pppoa" ] && [ "$up" != 1 ]; then + if [ "$proto" = "pppoa" ] && [ "$up" != 1 ] && [ "$auto" = 1 ]; then found=1 ( sleep 1; ifup "$ifc" ) & fi