don't recreate the resolv.conf file from the dhcp script if no dhcp server is supplied (reported by exobyte)
SVN-Revision: 4903
This commit is contained in:
parent
7cc1e43d94
commit
c379f4a159
@ -38,12 +38,14 @@ case "$1" in
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[ -n "$dns" ] && {
|
||||||
echo -n > $RESOLV_CONF
|
echo -n > $RESOLV_CONF
|
||||||
${domain:+echo search $domain} >> $RESOLV_CONF
|
${domain:+echo search $domain} >> $RESOLV_CONF
|
||||||
for i in $dns ; do
|
for i in $dns ; do
|
||||||
echo "adding dns $i"
|
echo "adding dns $i"
|
||||||
echo "nameserver $i" >> $RESOLV_CONF
|
echo "nameserver $i" >> $RESOLV_CONF
|
||||||
done
|
done
|
||||||
|
}
|
||||||
|
|
||||||
hotplug_event ifup
|
hotplug_event ifup
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user