-if [ "$ACTION" = add ]; then
- case "$DEVICENAME" in
- *-*:*.*) config_load network;;
- *) exit 0;;
- esac
-
- local tty
- for tty in /sys/$DEVPATH/ttyUSB* /sys/$DEVPATH/tty/ttyACM* /sys/$DEVPATH/tty/ttyHS*; do
- [ -d "$tty" ] || continue
- config_foreach find_3g_iface interface "$tty"
- done
-fi