Root/package/comgt/files/3g.iface

1include /lib/network
2config_load network
3scan_interfaces
4config_get proto "$INTERFACE" proto
5[ "$proto" = "3g" ] && {
6    config_get iface "$INTERFACE" ifname
7    case "$ACTION" in
8        ifup)
9            set_3g_led 1 1 0
10        ;;
11        ifdown)
12            set_3g_led 0 0 0
13        ;;
14    esac
15}
16

Archive Download this file



interactive