From f70de3485947f290926b0ce8e6de648a4259bcc6 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Wed, 15 Jan 2014 21:04:58 +0200 Subject: [PATCH] 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 --- package/busybox/udhcpc.script | 1 + 1 file changed, 1 insertion(+) 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" -- 2.30.2