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
5d569c2d
Commit
5d569c2d
authored
May 17, 2002
by
Mike Hibler
Browse files
Remove code that sets up bpf devices, this is more efficiently done
with cvsup.
parent
1eff498b
Changes
2
Hide whitespace changes
Inline
Side-by-side
tmcd/common/libsetup.pm
View file @
5d569c2d
...
...
@@ -1387,13 +1387,6 @@ sub bootsetup()
print
STDOUT
"
Checking Testbed routing configuration ...
\n
";
dorouterconfig
();
#
# Make 32 BPF devices in /dev
#
select
STDOUT
;
$|
=
1
;
print
STDOUT
"
Making /dev/bpf* devices ...
";
makebpfdevs
();
#
# Traffic generator Configuration.
#
...
...
@@ -1691,33 +1684,4 @@ sub TBForkCmd($) {
exit
(
$?
>>
8
);
}
#
# make some bpf devices in /dev
#
sub
makebpfdevs
()
{
my
(
$i
)
=
0
;
chomp
(
$cwd
=
`
pwd
`);
# Untaint the args.
if
(
$cwd
=~
/^([\/\w-]+)$/
)
{
$cwd
=
$
1
;
}
chdir
("
/dev
");
while
(
$i
<
32
)
{
if
(
!
-
e
"
bpf
$i
"
)
{
system
("
./MAKEDEV bpf
$i
");
print
STDOUT
"
.
"
}
$i
++
;
}
print
STDOUT
"
\n
";
chdir
(
$cwd
);
return
0
;
}
1
;
tmcd/libsetup.pm
View file @
5d569c2d
...
...
@@ -1387,13 +1387,6 @@ sub bootsetup()
print
STDOUT
"
Checking Testbed routing configuration ...
\n
";
dorouterconfig
();
#
# Make 32 BPF devices in /dev
#
select
STDOUT
;
$|
=
1
;
print
STDOUT
"
Making /dev/bpf* devices ...
";
makebpfdevs
();
#
# Traffic generator Configuration.
#
...
...
@@ -1691,33 +1684,4 @@ sub TBForkCmd($) {
exit
(
$?
>>
8
);
}
#
# make some bpf devices in /dev
#
sub
makebpfdevs
()
{
my
(
$i
)
=
0
;
chomp
(
$cwd
=
`
pwd
`);
# Untaint the args.
if
(
$cwd
=~
/^([\/\w-]+)$/
)
{
$cwd
=
$
1
;
}
chdir
("
/dev
");
while
(
$i
<
32
)
{
if
(
!
-
e
"
bpf
$i
"
)
{
system
("
./MAKEDEV bpf
$i
");
print
STDOUT
"
.
"
}
$i
++
;
}
print
STDOUT
"
\n
";
chdir
(
$cwd
);
return
0
;
}
1
;
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