mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 18:17:32 +02:00
add checks for {ip,ip6}addr in the network config
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6099 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
cd8d915cb5
commit
b766f54386
@ -117,8 +117,8 @@ setup_interface() {
|
||||
config_get gateway "$config" gateway
|
||||
config_get dns "$config" dns
|
||||
|
||||
$DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask"
|
||||
$DEBUG ifconfig "$iface" inet6 add "$ip6addr"
|
||||
[ -z "$ipaddr" ] || $DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask"
|
||||
[ -z "$ip6addr" ] || $DEBUG ifconfig "$iface" inet6 add "$ip6addr"
|
||||
[ -z "$gateway" ] || route add default gw "$gateway"
|
||||
[ -z "$dns" -o -f /tmp/resolv.conf.auto ] || {
|
||||
for ns in $dns; do
|
||||
|
Loading…
Reference in New Issue
Block a user