Skip to contentSkip to conversation

busybox: udhcpc script: create resolv.conf

PATCH New Baruch Siach 2 participants 2 messages Jan 15, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 busybox: udhcpc script: create resolv.conf

Eliminate the following error message on every boot:

grep: /etc/resolv.conf: No such file or directory

---
 package/busybox/udhcpc.script | 1 +
 1 file changed, 1 insertion(+)
package/busybox/udhcpc.script +1 -0
index 43742fbd5302..9e08dadf5f4e 100755
@@ -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"
 
Signature · 1 line
1.8.5.2
#1 lore raw

PATCH 1/1 busybox: udhcpc script: create resolv.conf

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

Eliminate the following error message on every boot:
grep: /etc/resolv.conf: No such file or directory

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard