[package] ppp: convert dos line endings in 20-atm-modem hotplug handler to unix format
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 11 May 2010 19:43:27 +0000 (19:43 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 11 May 2010 19:43:27 +0000 (19:43 +0000)
SVN-Revision: 21426

package/ppp/files/etc/hotplug.d/atm/20-atm-modem

index ab9e3b7..45ef542 100644 (file)
@@ -1,25 +1,25 @@
-#!/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 proto
+               config_get proto "$ifc" proto
+
+               if [ "$proto" = "pppoa" ] && [ "$up" != 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