6 logger -t 3g-hotplug "$@"
14 config_get proto "$cfg" proto
16 [ "$proto" = 3g ] && {
18 config_get_bool auto "$cfg" auto 1
19 [ "$auto" = 1 ] || return 0
22 config_get dev "$cfg" device
24 if [ "${dev##*/}" = "${tty##*/}" ] && [ -z "$(ls /var/lock | grep ${dev##*/})" ]; then
25 log "Starting interface $cfg for device ${dev##*/}"
26 ( sleep 1; /sbin/ifup "$cfg" ) &
32 if [ "$ACTION" = add ]; then
34 tty*) config_load network;;
39 for tty in /dev/ttyUSB* /dev/ttyACM* /dev/ttyHS*; do
40 [ -e "$tty" ] || continue
41 config_foreach find_3g_iface interface "$tty"