diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-11 19:43:27 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-11 19:43:27 +0000 |
commit | a6d4a383c88bbad46fa1b0c4ac2d760ef01e863c (patch) | |
tree | 5e5bede377d71ebd12bcee0d37c556200ce9c889 /package/ppp/files/etc/hotplug.d/atm/20-atm-modem | |
parent | cad72e9ac423b982c9b1e78888f5c977a60e8167 (diff) | |
download | upstream-a6d4a383c88bbad46fa1b0c4ac2d760ef01e863c.tar.gz upstream-a6d4a383c88bbad46fa1b0c4ac2d760ef01e863c.tar.bz2 upstream-a6d4a383c88bbad46fa1b0c4ac2d760ef01e863c.zip |
[package] ppp: convert dos line endings in 20-atm-modem hotplug handler to unix format
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21426 3c298f89-4303-0410-b956-a3cf2f4a3e73
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-modem | 50 |
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 ab9e3b7f8e..45ef54239c 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 |