Search
j0ke.net Open Build Service
>
Projects
>
GFS
>
sysconfig
> sysconfig_wait_for_interface_and_time_change.346559.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File sysconfig_wait_for_interface_and_time_change.346559.patch of Package sysconfig (Revision 1)
Currently displaying revision
1
,
show latest
--- scripts/network +++ scripts/network 2008/01/18 11:22:10 @@ -381,9 +381,8 @@ # be started before checking which interfaces are already available and might # still have to be set up because the were registered to early. Bug 39005) if [ "$ACTION" = start ] ; then - date +%s > $NETWORK_RUNFILE -# # We need that later to find out if an interface was just registered -# touch -d "`date -d "-20sec"`" $NETWORK_RUNFILE + IFS=. read a b < /proc/uptime + echo "$a" > $NETWORK_RUNFILE fi if [ -n "$TYPE" ] ; then @@ -726,7 +725,8 @@ # If only the seperator remains we are done and thus remove it test "`echo $MANDATORY_DEVICES`" = __NSC__ && MANDATORY_DEVICES= - TTWAIT=$((`date +%s` - `cat $NETWORK_RUNFILE`)) + IFS=. read a b < /proc/uptime + TTWAIT=$(($a - `cat $NETWORK_RUNFILE`)) test $TTWAIT -gt $((WAIT_FOR_INTERFACES)) \ -o -z "$MANDATORY_DEVICES" && break