[klibc] [PATCH 2/6] ipconfig: Write $UPTIME as uptime to /tmp/net-$DEVICE.conf
maximilian attems
max at stro.at
Fri May 18 15:28:49 PDT 2012
On Tue, 23 Aug 2011, KUMAAN wrote:
> This patch stores uptime value of sysinfo when ipconfig configured $DEVICE,
> and writes $UPTIME as the value to /tmp/net-$DEVICE.conf file.
>
> For example, $UPTIME is equal to '1' which means one second.
>
> Later, other scripts which source the file can calculate the time
> when ipconfig configured a $DEVICE . Since the clock of uptime is not
> adjusted until reboot, it is useful, while system clock may be
> adjusted by some programs like ntpdate or hwclock before other scripts
> source the file.
>
> Signed-off-by: KUMAAN <9maaan at gmail.com>
> ---
> usr/kinit/ipconfig/main.c | 12 ++++++++++++
> usr/kinit/ipconfig/netdev.h | 1 +
> 2 files changed, 13 insertions(+), 0 deletions(-)
thank you applied to latest klibc git.
More information about the klibc
mailing list