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