From: Jo-Philipp Wich Date: Sun, 2 May 2010 16:47:16 +0000 (+0000) Subject: [package] ppp: rename 20-usb-modem to 20-atm-modem X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=aeb17a34f662bf8ac86415c715a2c5b905cf8d27 [package] ppp: rename 20-usb-modem to 20-atm-modem SVN-Revision: 21303 --- diff --git a/package/ppp/Makefile b/package/ppp/Makefile index 222c85deae..66f72de21d 100644 --- a/package/ppp/Makefile +++ b/package/ppp/Makefile @@ -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 index 0000000000..ab9e3b7f8e --- /dev/null +++ b/package/ppp/files/etc/hotplug.d/atm/20-atm-modem @@ -0,0 +1,25 @@ +#!/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 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 index ab9e3b7f8e..0000000000 --- a/package/ppp/files/etc/hotplug.d/atm/20-usb-modem +++ /dev/null @@ -1,25 +0,0 @@ -#!/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