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 [ -z "$(ls /var/lock | grep ${dev##*/})" ] && {
26 log
"Starting interface $cfg for device ${dev##*/}"
35 if [ "$ACTION" = add
]; then
37 tty
*) config_load network
;;
42 for tty
in /dev
/ttyUSB
* /dev
/ttyACM
* /dev
/ttyHS
*; do
43 [ -e "$tty" ] ||
continue
44 config_foreach find_3g_iface interface
"$tty"