Ignore:
Timestamp:
2011-04-05T18:37:16+02:00 (5 years ago)
Author:
acinonyx
Message:

[packages] quicktun: Improve QuickTun init script

The new init script won't fail if quicktun takes more than 1 second to start.

Signed-off-by: Matthias Schiffer <mschiffer@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/quicktun/files/quicktun.init

    r25098 r26488  
    6161        eval env $OPTS "$SSD" -q -b -p "$PID" -m -x "$BIN" -S 
    6262 
    63         sleep 1 
     63        while ! ifconfig "$interface" >/dev/null 2>&1; do 
     64                if ! $SSD -t -q -p $PID -x $BIN -K; then 
     65                        echo "$s: daemon startup failed" 
     66                        return 1 
     67                fi 
    6468 
    65         if ! ifconfig "$interface" >/dev/null 2>&1; then 
    66                 echo "$s: daemon startup failed" 
    67                 return 1 
    68         fi 
     69                sleep 1 
     70        done 
    6971 
    7072        config_get up "$s" up 
Note: See TracChangeset for help on using the changeset viewer.