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
347ad1b2
Commit
347ad1b2
authored
Feb 17, 2004
by
Leigh B. Stoller
Browse files
Minor changes to reflect the recent changes in libsetup. This is
totally untested! Will have to get someone to test out an IXP.
parent
5c3cf657
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/linux/ixpboot
View file @
347ad1b2
#!/usr/bin/perl -wT
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
3
University of Utah and the Flux Group.
# Copyright (c) 2000-200
4
University of Utah and the Flux Group.
# All rights reserved.
#
# TODO: Startup command in rc.ixp. Use old version.
...
...
@@ -69,6 +69,7 @@ else {
#
my
%config
=
();
my
$logname
=
"
$LOGDIR
/subnode-
${ixpid}
.log
";
my
$RCDIR
=
"
$BINDIR
/rc
";
my
$ixpdir
=
"
/opt/ixasdk/enp-2505/bootixp
";
my
$armdir
=
"
/opt/ixasdk/bin/arm-be
";
my
$confdir
=
"
/opt/config
";
...
...
@@ -127,7 +128,7 @@ if (! ixpsetup($ixpid)) {
#
# Gen up a hostnames in the config dir.
#
dohostnames
("
$confdir
/hosts
");
system
("
$RCDIR
/rc.hostnames -j
$ixpid
-f
$confdir
/hosts
boot
");
#
# Copy resolv.conf
...
...
@@ -268,7 +269,11 @@ system("mv -f create_environment.rc.new create_environment.rc") == 0
# hashes (poor mans data structure). We generate a set of directives to
# put in the template file, which is in some format that is beyond me.
#
my
@ifacelist
=
doifconfig
();
my
@ifacelist
=
();
if
(
getifconfig
(
\
@ifacelist
)
!=
0
)
{
die
("
Could not get ifconfig from libsetup!
\n
");
}
#
# Copy the template to the config file, replace the TAG with the
...
...
@@ -342,7 +347,14 @@ foreach my $iface (@ifacelist) {
#
# Then put in the standard routes from libsetup, if any.
#
if
(
my
@routelist
=
dorouterconfig
())
{
my
@routelist
=
();
my
$type
=
"";
if
(
getrouterconfig
(
\
@routelist
,
\
$type
))
{
die
("
Could not get router configuration from libsetup!
\n
");
}
if
(
@routelist
)
{
foreach
my
$route
(
@routelist
)
{
my
$inet
=
$route
->
{"
IPADDR
"};
my
$mask
=
$route
->
{"
IPMASK
"};
...
...
Write
Preview
Markdown
is supported
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