udhcpc: run dhcp hotplug events after dns has been set
SVN-Revision: 15095
This commit is contained in:
parent
39cb0be665
commit
6a50bf433a
@ -58,12 +58,6 @@ case "$1" in
|
|||||||
[ -n "$dns" ] && \
|
[ -n "$dns" ] && \
|
||||||
echo -n > "${RESOLV_CONF}.tmp"
|
echo -n > "${RESOLV_CONF}.tmp"
|
||||||
|
|
||||||
if [ "$1" = "renew" ]; then
|
|
||||||
hotplug_event update
|
|
||||||
else
|
|
||||||
hotplug_event ifup
|
|
||||||
fi
|
|
||||||
|
|
||||||
[ -n "$dns" ] && {
|
[ -n "$dns" ] && {
|
||||||
[ -s "${RESOLV_CONF}.tmp" ] || {
|
[ -s "${RESOLV_CONF}.tmp" ] || {
|
||||||
for i in $dns ; do
|
for i in $dns ; do
|
||||||
@ -77,6 +71,12 @@ case "$1" in
|
|||||||
mv "${RESOLV_CONF}.tmp" "$RESOLV_CONF"
|
mv "${RESOLV_CONF}.tmp" "$RESOLV_CONF"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ "$1" = "renew" ]; then
|
||||||
|
hotplug_event update
|
||||||
|
else
|
||||||
|
hotplug_event ifup
|
||||||
|
fi
|
||||||
|
|
||||||
# user rules
|
# user rules
|
||||||
[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
|
[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user