projects
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6df94d6
)
fixes for static .. gateway & resolv
author
mbm
<mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 13 Apr 2004 04:38:04 +0000
(
04:38
+0000)
committer
mbm
<mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 13 Apr 2004 04:38:04 +0000
(
04:38
+0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
root/etc/networking.sh
patch
|
blob
|
history
diff --git
a/root/etc/networking.sh
b/root/etc/networking.sh
index c1e6742e363eba61f9ac409837b89a7c4c02ae1e..6eb967b14c80b080a2ee9147d3df339b7e4e0679 100755
(executable)
--- a/
root/etc/networking.sh
+++ b/
root/etc/networking.sh
@@
-84,8
+84,15
@@
configure () {
ipcalc -s "$if_netmask" || return
$DEBUG ifconfig $if $if_ip netmask $if_netmask up
- ipcalc -s "$ip_gateway" || return
- $DEBUG route add default gw $ip_gateway
+ ipcalc -s "$if_gateway" || return
+ $DEBUG route add default gw $if_gateway
+
+ [ -f /etc/resolv.conf ] && return
+
+ echo "# --- creating /etc/resolv.conf ---"
+ for dns in $(nvram_get ${if}_dns); do {
+ echo "nameserver $dns" >> /etc/resolv.conf
+ }; done
;;
dhcp)
pidfile=/tmp/dhcp-${type}.pid