mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 14:47:46 +01:00
base-files: fixup resolv.conf check in udhcpc script
SVN-Revision: 15903
This commit is contained in:
parent
459edb94dc
commit
2ee67f7272
@ -68,7 +68,7 @@ setup_interface () {
|
||||
user_dns=$(uci_get "network.$ifc.dns")
|
||||
[ -n "$user_dns" ] && dns="$user_dns"
|
||||
|
||||
[ -n "$dns" ] && [ ! -s "${RESOLV_CONF}.tmp" -o "$dns" != "$old_dns" ] && {
|
||||
[ -n "$dns" ] && [ ! -s "${RESOLV_CONF}" -o "$dns" != "$old_dns" ] && {
|
||||
echo "udhcpc: setting dns servers: $dns"
|
||||
echo -n > "${RESOLV_CONF}.tmp"
|
||||
for i in $dns ; do
|
||||
|
Loading…
Reference in New Issue
Block a user