mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-26 22:21:07 +02:00
udhcpc: run dhcp hotplug events after dns has been set
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15095 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6cd6bccc65
commit
0eec108cc8
@ -58,12 +58,6 @@ case "$1" in
|
||||
[ -n "$dns" ] && \
|
||||
echo -n > "${RESOLV_CONF}.tmp"
|
||||
|
||||
if [ "$1" = "renew" ]; then
|
||||
hotplug_event update
|
||||
else
|
||||
hotplug_event ifup
|
||||
fi
|
||||
|
||||
[ -n "$dns" ] && {
|
||||
[ -s "${RESOLV_CONF}.tmp" ] || {
|
||||
for i in $dns ; do
|
||||
@ -76,7 +70,13 @@ case "$1" in
|
||||
|
||||
mv "${RESOLV_CONF}.tmp" "$RESOLV_CONF"
|
||||
}
|
||||
|
||||
|
||||
if [ "$1" = "renew" ]; then
|
||||
hotplug_event update
|
||||
else
|
||||
hotplug_event ifup
|
||||
fi
|
||||
|
||||
# user rules
|
||||
[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user