2006-11-04 00:21:54 +00:00
|
|
|
include /lib/network
|
|
|
|
config_load network
|
|
|
|
scan_interfaces
|
|
|
|
config_get proto "$INTERFACE" proto
|
|
|
|
[ "$proto" = "3g" ] && {
|
2006-11-09 05:40:27 +00:00
|
|
|
config_get iface "$INTERFACE" ifname
|
2006-11-04 00:21:54 +00:00
|
|
|
case "$ACTION" in
|
2006-11-09 05:40:27 +00:00
|
|
|
ifup)
|
|
|
|
set_3g_led 1 1 0
|
|
|
|
;;
|
|
|
|
ifdown)
|
|
|
|
set_3g_led 0 0 0
|
|
|
|
;;
|
2006-11-04 00:21:54 +00:00
|
|
|
esac
|
|
|
|
}
|