wok-next diff busybox/stuff/udhcp.script @ rev 20734
nut: update (b)deps
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 18:57:36 2018 +0300 (2018-05-29) |
parents | d83d24e3aa16 |
children |
line diff
1.1 --- a/busybox/stuff/udhcp.script Fri Mar 16 14:51:41 2012 +0100 1.2 +++ b/busybox/stuff/udhcp.script Tue May 29 18:57:36 2018 +0300 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