mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 14:20:40 +01:00
Allow HOST=default in the configure scripts
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
209d5d0766
commit
5807d44733
3
Shorewall-core/configure
vendored
3
Shorewall-core/configure
vendored
@ -158,6 +158,9 @@ else
|
||||
if [ ! -f $rcfile ]; then
|
||||
echo "ERROR: $vendor is not a recognized host type" >&2
|
||||
exit 1
|
||||
elif [ $vendor = default ]; then
|
||||
params[HOST]=linux
|
||||
vendor=linux
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -82,7 +82,11 @@ unless ( defined $vendor ) {
|
||||
|
||||
if ( defined $vendor ) {
|
||||
$rcfilename = $vendor eq 'linux' ? 'shorewallrc.default' : 'shorewallrc.' . $vendor;
|
||||
die qq("ERROR: $vendor" is not a recognized host type) unless -f $rcfilename;
|
||||
unless ( -f $rcfilename ) {
|
||||
die qq("ERROR: $vendor" is not a recognized host type);
|
||||
} elsif ( $vendor eq 'default' ) {
|
||||
$params{HOST} = $vendor = 'linux';
|
||||
}
|
||||
} else {
|
||||
if ( -f '/etc/debian_version' ) {
|
||||
$vendor = 'debian';
|
||||
|
Loading…
Reference in New Issue
Block a user