mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Report the line number where gethints.pl does not understand something
in an old device line.
This commit is contained in:
parent
ad61de5c4e
commit
1bce768912
3 changed files with 6 additions and 3 deletions
|
|
@ -9,6 +9,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
while (<>) {
|
||||
$line++;
|
||||
chop;
|
||||
s/#.*//;
|
||||
next unless /^device/;
|
||||
|
|
@ -94,6 +95,6 @@ while (<>) {
|
|||
}
|
||||
next;
|
||||
}
|
||||
print STDERR "unrecognized config token $key\n";
|
||||
print STDERR "unrecognized config token '$key' on line $line\n";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
while (<>) {
|
||||
$line++;
|
||||
chop;
|
||||
s/#.*//;
|
||||
next unless /^device/;
|
||||
|
|
@ -94,6 +95,6 @@ while (<>) {
|
|||
}
|
||||
next;
|
||||
}
|
||||
print STDERR "unrecognized config token $key\n";
|
||||
print STDERR "unrecognized config token '$key' on line $line\n";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
while (<>) {
|
||||
$line++;
|
||||
chop;
|
||||
s/#.*//;
|
||||
next unless /^device/;
|
||||
|
|
@ -87,6 +88,6 @@ while (<>) {
|
|||
}
|
||||
next;
|
||||
}
|
||||
print STDERR "unrecognized config token $key\n";
|
||||
print STDERR "unrecognized config token '$key' on line $line\n";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue