Add Ubuntu support to Shorewall-core installer.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-10-09 07:05:06 -07:00
parent b27e3d2fff
commit faeea3bd8a

View File

@ -58,7 +58,7 @@ my $rcfilename;
unless ( defined $vendor ) {
if ( -f '/etc/os-release' ) {
my $id = `cat /etc/os-release | grep ^ID`;
my $id = `cat /etc/os-release | grep ^ID=`;
chomp $id;
@ -68,6 +68,8 @@ unless ( defined $vendor ) {
$vendor = 'redhat';
} elsif ( $id eq 'opensuse' ) {
$vendor = 'suse';
} elsif ( $id eq 'ubuntu' ) {
$vendor = 'debian';
} else {
$vendor = $id;
}