projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup MTD option handling
[openwrt.git]
/
package
/
base-files
/
files
/
usr
/
share
/
udhcpc
/
default.script
diff --git
a/package/base-files/files/usr/share/udhcpc/default.script
b/package/base-files/files/usr/share/udhcpc/default.script
index
198ef13
..
84c7297
100755
(executable)
--- a/
package/base-files/files/usr/share/udhcpc/default.script
+++ b/
package/base-files/files/usr/share/udhcpc/default.script
@@
-58,12
+58,6
@@
case "$1" in
[ -n "$dns" ] && \
echo -n > "${RESOLV_CONF}.tmp"
[ -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
[ -n "$dns" ] && {
[ -s "${RESOLV_CONF}.tmp" ] || {
for i in $dns ; do
@@
-76,7
+70,13
@@
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
[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
;;
# user rules
[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
;;
This page took
0.023698 seconds
and
4
git commands to generate.