mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-08-20 05:35:51 +03:00
[package] base-files: fixup resolv.conf check in udhcpc script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15903 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
81f76c5079
commit
983acddc60
@ -68,7 +68,7 @@ setup_interface () {
|
|||||||
user_dns=$(uci_get "network.$ifc.dns")
|
user_dns=$(uci_get "network.$ifc.dns")
|
||||||
[ -n "$user_dns" ] && dns="$user_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 "udhcpc: setting dns servers: $dns"
|
||||||
echo -n > "${RESOLV_CONF}.tmp"
|
echo -n > "${RESOLV_CONF}.tmp"
|
||||||
for i in $dns ; do
|
for i in $dns ; do
|
||||||
|
Loading…
Reference in New Issue
Block a user