aboutsummaryrefslogtreecommitdiff
path: root/examples/udhcp/simple.script (follow)
Commit message (Collapse)AuthorAgeFilesLines
* examples/udhcp/simple.script: fix IPv6 support when using udhcpcStefan Agner2020-06-211-1/+1
| | | | | | | | | | | | | | | | | | The udhcpc script calls ip addr flush .. which flushes addresses of any address family, including IPv6. However, busybox udhcpc is IPv4 only and should not influence IPv6 addressing. Hence use ip addr flush with family constraint. The script particularly broke IPv6 SLAAC: Typically when udhcpc calls the script the kernel already assigned the IPv6 link-local address. The flush removes the link-local IPv6 address again and prohibits proper IPv6 operation such as SLAAC since neighbor discovery protocol relies on IPv6 link-local addressing. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> [Taken from https://git.openembedded.org/openembedded-core/commit/meta/recipes-core/busybox/files/simple.script?id=b77541dbb2f442e51842f9d24c8745a6df2d1478] Signed-off-by: Quentin Schulz <quentin.schulz@streamunlimited.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/udhcp/simple.script: print the filename actually changedRolf Eike Beer2019-09-121-1/+1
| | | | | Signed-off-by: Rolf Eike Beer <eb@emlix.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/udhcp/simple.script: up interface on deconfig eventDenys Vlasenko2019-09-051-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/udhcp/simple.script: fix resolv.conf update if it is a dangling symlinkRolf Eike Beer2019-04-131-0/+4
| | | | | | | | | | If /etc/resolv.conf is a symlink to a tmpfs and the actual file does not already exist, "readlink -f" will not detect it as symlink. Explicitely check for that condition before and touch the file, making the other code work as intended. Signed-off-by: Rolf Eike Beer <eb@emlix.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/udhcp/simple.script: add possibility to use modern "ip"Jiří Prchal2018-10-301-3/+15
| | | | | | | | Script uses "ifconfig" only, not up-to-date so much. This patch adds "ip" in condition if exists. Signed-off-by: Jiří Prchal <jiri.prchal@aksignal.cz> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples: make udhcpc script handle /32 netmasksDenys Vlasenko2017-04-061-2/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: use readlink rather than realpathMike Frysinger2013-03-121-1/+1
| | | | | | | | | The realpath utility requires all paths exist when canonicalizing symlinks. If /etc/resolv.conf points to a tmpfs, then it might not exist initially. Use `readlink -f` so that we follow all symlinks that are available. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* udhcpc: tweak math shell style with the metric varMike Frysinger2013-02-271-1/+2
| | | | | | | | Some shells (like dash) are lame and omit the POSIX increment/decrement feature (because it is listed as optional). Tweak the shell script to work in all POSIX variants. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* udhcpc: support resolv.conf symlinksMike Frysinger2013-02-271-4/+8
| | | | | | | | Often it is desirable to have /etc/ be on read-only storage (well, the whole rootfs) but have things like /etc/resolv.conf be symlinks to a writable location. Tweak the simple script to support that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* chmod 755 some files in examples/*Denys Vlasenko2009-07-231-0/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tftp: do not risk invoking Sorcerer's Apprentice syndromeDenys Vlasenko2009-05-101-1/+1
| | | | | | examples/udhcp/simple.script: fix incorrect test for $1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tweak example udhcp scriptDenis Vlasenko2009-04-211-5/+5
|
* update example udhcpc scriptDenis Vlasenko2009-04-161-8/+15
|
* Simon Poole writes:Eric Andersen2004-10-131-1/+2
| | | | | | | | | | | | | Erik, Attached is a patch for the udhcpc sample scripts, to correct the order in which routers are applied if the DHCP server provides more than one (as per section 3.5 of RFC2132). Apologies for not being on the mailing list and thanks for your continued efforts. Simon.
* added full udhcp integrationRuss Dill2002-10-141-0/+39