From: Baruch Siach Date: Wed, 15 Jan 2014 19:04:58 +0000 (+0200) Subject: busybox: udhcpc script: create resolv.conf X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f70de3485947f290926b0ce8e6de648a4259bcc6;p=buildroot.git busybox: udhcpc script: create resolv.conf Eliminate the following error message on every boot: grep: /etc/resolv.conf: No such file or directory Signed-off-by: Baruch Siach Signed-off-by: Peter Korsgaard --- diff --git a/package/busybox/udhcpc.script b/package/busybox/udhcpc.script index 43742fbd53..9e08dadf5f 100755 --- a/package/busybox/udhcpc.script +++ b/package/busybox/udhcpc.script @@ -5,6 +5,7 @@ [ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1 RESOLV_CONF="/etc/resolv.conf" +[ -e $RESOLV_CONF ] || touch $RESOLV_CONF [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" [ -n "$subnet" ] && NETMASK="netmask $subnet"