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##*/}" ]; then
25 log "Starting interface $cfg for device ${tty##*/}"
26 ( sleep 1; /sbin/ifup "$cfg" ) &
32 if [ "$ACTION" = add ]; then
34 *-*:*.*) config_load network;;
39 for tty in /sys/$DEVPATH/ttyUSB*; do
40 [ -d "$tty" ] || break
41 config_foreach find_3g_iface interface "$tty"