Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
5c15bded
Commit
5c15bded
authored
Aug 29, 2008
by
David Johnson
Browse files
Static config bugs.
parent
b4853e8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/freebsd6/netif-emulab.in
View file @
5c15bded
...
@@ -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_AD
R
R" = "
x
" \
-o "
$
WA_IP_AD
D
R" = "" \
-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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment