6 logger
-t 3g-hotplug
"$@"
14 config_get proto
"$cfg" proto
15 [ "$proto" = 3g
] ||
return 0
18 config_get_bool auto
"$cfg" auto
1
19 [ "$auto" = 1 ] ||
[ "$ACTION" = remove
] ||
return 0
22 config_get dev
"$cfg" device
24 if [ "${dev##*/}" = "${tty##*/}" ]; then
25 if [ "$ACTION" = add
]; then
26 log
"Starting interface $cfg for device ${dev##*/}"
27 ( sleep 1; /sbin
/ifup
"$cfg" ) &
29 log
"Stopping interface $cfg for device ${dev##*/}"
37 [ -e "/dev/$DEVICENAME" ] ||
[ "$ACTION" = remove
] ||
exit 0
39 config_foreach find_3g_iface interface
"/dev/$DEVICENAME"