aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexamples/udhcp/simple.script2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/udhcp/simple.script b/examples/udhcp/simple.script
index 0397e506c..2a917eb6c 100755
--- a/examples/udhcp/simple.script
+++ b/examples/udhcp/simple.script
@@ -37,7 +37,7 @@ case "$1" in
37 echo "Recreating $RESOLV_CONF" 37 echo "Recreating $RESOLV_CONF"
38 # If the file is a symlink somewhere (like /etc/resolv.conf 38 # If the file is a symlink somewhere (like /etc/resolv.conf
39 # pointing to /run/resolv.conf), make sure things work. 39 # pointing to /run/resolv.conf), make sure things work.
40 realconf=$(realpath "$RESOLV_CONF" 2>/dev/null || echo "$RESOLV_CONF") 40 realconf=$(readlink -f "$RESOLV_CONF" 2>/dev/null || echo "$RESOLV_CONF")
41 tmpfile="$realconf-$$" 41 tmpfile="$realconf-$$"
42 > "$tmpfile" 42 > "$tmpfile"
43 [ -n "$domain" ] && echo "search $domain" >> "$tmpfile" 43 [ -n "$domain" ] && echo "search $domain" >> "$tmpfile"