From 3b5689eb5ea065b17dbf16ecaec078a1261060e1 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 2 May 2010 16:47:16 +0000 Subject: ppp: rename 20-usb-modem to 20-atm-modem SVN-Revision: 21303 --- package/ppp/files/etc/hotplug.d/atm/20-atm-modem | 25 ++++++++++++++++++++++++ package/ppp/files/etc/hotplug.d/atm/20-usb-modem | 25 ------------------------ 2 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 package/ppp/files/etc/hotplug.d/atm/20-atm-modem delete mode 100644 package/ppp/files/etc/hotplug.d/atm/20-usb-modem (limited to 'package/ppp/files') 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..45ef54239c --- /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 45ef54239c..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 -- cgit v1.2.3