wok diff busybox/stuff/udhcp.script @ rev 19065

Take care on root in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 21 09:45:48 2016 +0200 (2016-04-21)
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	Thu Apr 21 09:45:48 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