Handle Ubuntu in the init installer

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-10-25 07:08:21 -07:00
parent c2c1552484
commit 9c75895d43

View File

@ -174,8 +174,6 @@ done
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
[ -n "$BUILD" ] || BUILD=$HOST
if [ -z "$BUILD" ]; then
case $(uname) in
cygwin*)
@ -186,13 +184,13 @@ if [ -z "$BUILD" ]; then
;;
*)
if [ -f /etc/os-release ]; then
eval $(cat /etc/os-release | grep ^ID)
eval $(cat /etc/os-release | grep ^ID=)
case $ID in
fedora)
BUILD=redhat
;;
debian)
debian|ubuntu)
BUILD=debian
;;
opensuse)
@ -204,6 +202,8 @@ if [ -z "$BUILD" ]; then
esac
elif [ -f /etc/debian_version ]; then
BUILD=debian
elif [ -f /etc/ubuntu_version ]; then
BUILD=debian
elif [ -f /etc/gentoo-release ]; then
BUILD=gentoo
elif [ -f /etc/redhat-release ]; then