udhcpc: use readlink rather than realpath
authorMike Frysinger <vapier@gentoo.org>
Tue, 12 Mar 2013 14:48:09 +0000 (10:48 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 12 Mar 2013 14:48:09 +0000 (10:48 -0400)
commitbca5c556c43ced7b368fdd90a24e4aecf40045ac
tree99574aa8b9f3a48f154e2e9f30a4d79525465054
parent9bbf6b98c42a212b8a4b1aa02975ac18bb612922
udhcpc: use readlink rather than realpath

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>
examples/udhcp/simple.script