Commit 5d569c2d authored by Mike Hibler's avatar Mike Hibler
Browse files

Remove code that sets up bpf devices, this is more efficiently done

with cvsup.
parent 1eff498b
......@@ -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;
......@@ -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;
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