Ticket #9211: comgt.patch
File comgt.patch, 1.7 KB (added by Layne Edwards <ledwards@…>, 7 years ago) |
---|
-
package/comgt/files/3g.usb
22 22 config_get dev "$cfg" device 23 23 24 24 if [ "${dev##*/}" = "${tty##*/}" ]; then 25 log "Starting interface $cfg for device ${tty##*/}" 26 ( sleep 1; /sbin/ifup "$cfg" ) & 25 [ -z "$(ls /var/lock | grep ${dev##*/})" ] && { 26 log "Starting interface $cfg for device ${dev##*/}" 27 sleep 1 28 /sbin/ifup "$cfg" 29 } 27 30 fi 28 31 } 29 32 } … … 31 34 32 35 if [ "$ACTION" = add ]; then 33 36 case "$DEVICENAME" in 34 *-*:*.*) config_load network;;37 tty*) config_load network;; 35 38 *) exit 0;; 36 39 esac 37 40 38 41 local tty 39 for tty in / sys/$DEVPATH/ttyUSB* /sys/$DEVPATH/tty/ttyACM* /sys/$DEVPATH/tty/ttyHS*; do40 [ - d"$tty" ] || continue42 for tty in /dev/ttyUSB* /dev/ttyACM* /dev/ttyHS*; do 43 [ -e "$tty" ] || continue 41 44 config_foreach find_3g_iface interface "$tty" 42 45 done 43 46 fi -
package/comgt/Makefile
54 52 $(INSTALL_DATA) ./files/3g.button $(1)/etc/hotplug.d/button/05-3g 55 53 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface 56 54 $(INSTALL_DATA) ./files/3g.iface $(1)/etc/hotplug.d/iface/05-3g 57 $(INSTALL_DIR) $(1)/etc/hotplug.d/ usb58 $(INSTALL_DATA) ./files/3g.usb $(1)/etc/hotplug.d/ usb/30-3g55 $(INSTALL_DIR) $(1)/etc/hotplug.d/tty 56 $(INSTALL_DATA) ./files/3g.usb $(1)/etc/hotplug.d/tty/30-3g 59 57 $(INSTALL_DIR) $(1)/etc/gcom 60 58 $(INSTALL_DATA) ./files/setpin.gcom $(1)/etc/gcom/setpin.gcom 61 59 $(INSTALL_DATA) ./files/setmode.gcom $(1)/etc/gcom/setmode.gcom