-#!/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