busybox: udhcpc.script: cleanup
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 26 Jun 2013 12:29:19 +0000 (14:29 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 26 Jun 2013 12:34:25 +0000 (14:34 +0200)
commit8432d81a849efca1d95ab0bd1324afd96bbdd804
tree7ff4065462dae9b1b6e3e506a0fd5a06860f1bd7
parent0c229f70ea270069e981bfb59e3aea80b21bbcfb
busybox: udhcpc.script: cleanup

ifconfig up is a no-op if the device is already running, so let's just
do that unconditionally.

Systems might have multiple network devices, and perhaps run udhcpc on
another interface even when booted over nfs, so don't disable the
per-interface deconfig based on the global nfsroot= setting on the kernel
command line.

If you don't want udhcpc to mess with kernel level IP autoconfiguration
(E.G. for nfs boot), you should instead ensure udhcpc/ifup/ifplugd isn't
started for that interface.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/busybox/udhcpc.script