3 # This script is called by dsl_cpe_control whenever there is a DSL event,
4 # we only actually care about the DSL_INTERFACE_STATUS events as these
5 # tell us the line has either come up or gone down.
7 # The rest of the code is basically the same at the atm hotplug code
10 [ "$DSL_NOTIFICATION_TYPE" = "DSL_INTERFACE_STATUS" ] ||
exit 0
19 for ifc
in $interfaces; do
21 config_get_bool up
"$ifc" up
0
24 config_get_bool auto
"$ifc" auto
1
27 config_get proto
"$ifc" proto
29 if [ "$DSL_INTERFACE_STATUS" = "UP" ]; then
30 if [ "$proto" = "pppoa" ] && [ "$up" != 1 ] && [ "$auto" = 1 ]; then
32 ( sleep 1; ifup
"$ifc" ) &
35 if [ "$proto" = "pppoa" ] && [ "$up" = 1 ] && [ "$auto" = 1 ]; then
37 ( sleep 1; ifdown
"$ifc" ) &
42 if [ "$found" != 1 ]; then
43 logger
"Found no matching interface for DSL notification ($DSL_INTERFACE_STATUS)"
This page took 0.049367 seconds and 5 git commands to generate.