wok-current diff busybox/stuff/udhcp.script @ rev 19401
memtest: DOS shutdown (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 03 13:03:50 2016 +0200 (2016-09-03) |
parents | d83d24e3aa16 |
children | 05ed2662f295 |
line diff
1.1 --- a/busybox/stuff/udhcp.script Fri Mar 16 14:51:41 2012 +0100 1.2 +++ b/busybox/stuff/udhcp.script Sat Sep 03 13:03:50 2016 +0200 1.3 @@ -16,6 +16,9 @@ 1.4 1.5 logger "$0 interface=$interface ip=$ip broadcast=$broadcast subnet=$subnet router=$router domain=$domain dns=$dns $@" 1.6 1.7 +skip=$(sed "/skipdhcpip=/!d;s/.*skipdhcpip=\([^ ]*\).*/\1/" </proc/cmdline) 1.8 +[ -n "$skip" ] && case "$ip" in $skip*) exit 0;; esac 1.9 + 1.10 case "$1" in 1.11 deconfig) 1.12 netfs || /sbin/ifconfig $interface 0.0.0.0