search for: buf21

Displaying 2 results from an estimated 2 matches for "buf21".

Did you mean: buf2
2012 May 22
0
[klibc:master] ipconfig: Write $DOMAINSEARCH as domain-search
..., sizeof(struct bootp_hdr)}, diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c index 148ccb6..476384a 100644 --- a/usr/kinit/ipconfig/main.c +++ b/usr/kinit/ipconfig/main.c @@ -176,6 +176,8 @@ static void dump_device_config(struct netdev *dev) write_option(f, "UPTIME", buf21); sprintf(buf21, "%u", (unsigned int)dev->dhcpleasetime); write_option(f, "DHCPLEASETIME", buf21); + write_option(f, "DOMAINSEARCH", dev->domainsearch == NULL ? + "" : dev->domainsearch); fclose(f); } } diff --git a/usr/kinit/ipco...
2012 May 22
0
[klibc:master] ipconfig: Use /run/ directory for script file
...rtions(+), 1 deletions(-) diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c index 476384a..7be2a1f 100644 --- a/usr/kinit/ipconfig/main.c +++ b/usr/kinit/ipconfig/main.c @@ -147,8 +147,9 @@ static void dump_device_config(struct netdev *dev) * sizeof(UINT64_MAX)==21 */ char buf21[21]; + const char path[] = "/run/"; - snprintf(fn, sizeof(fn), "/tmp/net-%s.conf", dev->name); + snprintf(fn, sizeof(fn), "%snet-%s.conf", path, dev->name); f = fopen(fn, "w"); if (f) { write_option(f, "DEVICE", dev->name);