Commit 5c15bded authored by David Johnson's avatar David Johnson
Browse files

Static config bugs.

parent b4853e8b
...@@ -106,16 +106,16 @@ cnet_start() ...@@ -106,16 +106,16 @@ cnet_start()
fi fi
done done
if [ x"$cnetif" = x"" ]; then if [ "$cnetif" = "" ]; then
echo -n "Could not find iface with " echo -n "Could not find iface with "
echo "$WA_MAC; trying DHCP!" echo "$WA_MAC; trying DHCP!"
WA_BOOTMETHOD="dhcp" WA_BOOTMETHOD="dhcp"
elif [ x"WA_HOSTNAME" = "x" \ elif [ "$WA_HOSTNAME" = "" \
-o x"WA_DOMAIN" = "x" \ -o "$WA_DOMAIN" = "" \
-o x"WA_IP_ADRR" = "x" \ -o "$WA_IP_ADDR" = "" \
-o x"WA_IP_NETMASK" = "x" \ -o "$WA_IP_NETMASK" = "" \
-o x"WA_IP_GATEWAY" = "x" \ -o "$WA_IP_GATEWAY" = "" \
-o x"WA_IP_DNS1" = "x" ]; then -o "$WA_IP_DNS1" = "" ]; then
echo -n "Missing static IP config " echo -n "Missing static IP config "
echo "vars; trying DHCP!" echo "vars; trying DHCP!"
WA_BOOTMETHOD="dhcp" WA_BOOTMETHOD="dhcp"
...@@ -151,7 +151,7 @@ cnet_start() ...@@ -151,7 +151,7 @@ cnet_start()
# setup resolv.conf # setup resolv.conf
echo "search $WA_DOMAIN" > /etc/resolv.conf echo "search $WA_DOMAIN" > /etc/resolv.conf
echo "nameserver $WA_IP_DNS1" >> /etc/resolv.conf echo "nameserver $WA_IP_DNS1" >> /etc/resolv.conf
if [ x"$WA_IP_DNS2" != x ]; then if [ "$WA_IP_DNS2" != "" ]; then
echo "nameserver $WA_IP_DNS2" >> /etc/resolv.conf echo "nameserver $WA_IP_DNS2" >> /etc/resolv.conf
fi fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment