Changeset 26810


Ignore:
Timestamp:
2011-05-03T21:45:55+02:00 (7 years ago)
Author:
jow
Message:

[package] comgt: move ifup invocation back into background subshell to prevent hotplug deadlocks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/comgt/files/3g.usb

    r26809 r26810  
    2222                config_get dev "$cfg" device 
    2323 
    24                 if [ "${dev##*/}" = "${tty##*/}" ]; then 
    25                         [ -z "$(ls /var/lock | grep ${dev##*/})" ] && { 
    26                                 log "Starting interface $cfg for device ${dev##*/}" 
    27                                 sleep 1 
    28                                 /sbin/ifup "$cfg" 
    29                         } 
     24                if [ "${dev##*/}" = "${tty##*/}" ] && [ -z "$(ls /var/lock | grep ${dev##*/})" ]; then 
     25                        log "Starting interface $cfg for device ${dev##*/}" 
     26                        ( sleep 1; /sbin/ifup "$cfg" ) & 
    3027                fi 
    3128        } 
Note: See TracChangeset for help on using the changeset viewer.