summaryrefslogtreecommitdiffstats
path: root/package/ppp/files/etc/hotplug.d/atm/20-atm-modem
diff options
context:
space:
mode:
Diffstat (limited to 'package/ppp/files/etc/hotplug.d/atm/20-atm-modem')
-rw-r--r--package/ppp/files/etc/hotplug.d/atm/20-atm-modem50
1 files changed, 25 insertions, 25 deletions
diff --git a/package/ppp/files/etc/hotplug.d/atm/20-atm-modem b/package/ppp/files/etc/hotplug.d/atm/20-atm-modem
index ab9e3b7f8..45ef54239 100644
--- a/package/ppp/files/etc/hotplug.d/atm/20-atm-modem
+++ b/package/ppp/files/etc/hotplug.d/atm/20-atm-modem
@@ -1,25 +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
+#!/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