mac80211: b43: Expose PIO mode fallback
[openwrt.git] / package / ppp / files / etc / hotplug.d / atm / 20-atm-modem
index ab9e3b7..4fd9b9c 100644 (file)
@@ -1,25 +1,28 @@
-#!/bin/sh\r
-\r
-if [ "$ACTION" = "add" ]; then\r
-       include /lib/network\r
-       scan_interfaces\r
-\r
-       local found=0\r
-       local ifc\r
-       for ifc in $interfaces; do\r
-               local up\r
-               config_get_bool up "$ifc" up 0\r
-\r
-               local proto\r
-               config_get proto "$ifc" proto\r
-\r
-               if [ "$proto" = "pppoa" ] && [ "$up" != 1 ]; then\r
-                       found=1\r
-                       ( sleep 1; ifup "$ifc" ) &\r
-               fi\r
-       done\r
-\r
-       if [ "$found" != 1 ]; then\r
-               logger "Found no matching interface for DSL device $DEVICENAME"\r
-       fi\r
-fi\r
+#!/bin/sh
+
+if [ "$ACTION" = "add" ]; then
+       include /lib/network
+       scan_interfaces
+
+       local found=0
+       local ifc
+       for ifc in $interfaces; do
+               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 ] && [ "$auto" = 1 ]; then
+                       found=1
+                       ( sleep 1; ifup "$ifc" ) &
+               fi
+       done
+
+       if [ "$found" != 1 ]; then
+               logger "Found no matching interface for DSL device $DEVICENAME"
+       fi
+fi
This page took 0.023296 seconds and 4 git commands to generate.