mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-02-25 05:25:02 +01:00
22 lines
511 B
Text
22 lines
511 B
Text
include /lib/network
|
|
|
|
|
|
if [ "ADSL" == "$INTERFACE" -o "VDSL2" == "$INTERFACE" ]; then
|
|
if [ "ADSL" == "$INTERFACE" ]; then
|
|
if [ "$ACTION" == "remove" ]; then
|
|
uci_toggle_state layer2_interface adsl device down
|
|
else
|
|
uci_toggle_state layer2_interface adsl device up
|
|
fi
|
|
fi
|
|
if [ "VDSL2" == "$INTERFACE" ]; then
|
|
if [ "$ACTION" == "remove" ]; then
|
|
uci_toggle_state layer2_interface vdsl device down
|
|
else
|
|
uci_toggle_state layer2_interface vdsl device up
|
|
fi
|
|
fi
|
|
|
|
/etc/init.d/dsl reload
|
|
fi
|
|
|