[package] ppp: rename 20-usb-modem to 20-atm-modem
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 2 May 2010 16:47:16 +0000 (16:47 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 2 May 2010 16:47:16 +0000 (16:47 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21303 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/ppp/Makefile
package/ppp/files/etc/hotplug.d/atm/20-atm-modem [new file with mode: 0644]
package/ppp/files/etc/hotplug.d/atm/20-usb-modem [deleted file]

index 222c85d..66f72de 100644 (file)
@@ -150,7 +150,7 @@ define Package/ppp-mod-pppoa/install
        $(INSTALL_DIR) $(1)/lib/network
        $(INSTALL_BIN) ./files/pppoa.sh $(1)/lib/network/
        $(INSTALL_DIR) $(1)/etc/hotplug.d/atm
-       $(INSTALL_DATA) ./files/etc/hotplug.d/atm/20-usb-modem $(1)/etc/hotplug.d/atm/
+       $(INSTALL_DATA) ./files/etc/hotplug.d/atm/20-atm-modem $(1)/etc/hotplug.d/atm/
 endef
 
 define Package/ppp-mod-pppoe/install
diff --git a/package/ppp/files/etc/hotplug.d/atm/20-atm-modem b/package/ppp/files/etc/hotplug.d/atm/20-atm-modem
new file mode 100644 (file)
index 0000000..ab9e3b7
--- /dev/null
@@ -0,0 +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
diff --git a/package/ppp/files/etc/hotplug.d/atm/20-usb-modem b/package/ppp/files/etc/hotplug.d/atm/20-usb-modem
deleted file mode 100644 (file)
index ab9e3b7..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/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
This page took 0.029236 seconds and 4 git commands to generate.