Unify the supported install script os/distro set.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-02-17 15:26:02 -08:00
parent 8a3f1f7111
commit ee7ea4adb9
3 changed files with 21 additions and 7 deletions

View File

@ -148,6 +148,8 @@ if [ -n "INSTALLSYS" ]; then
else
INSTALLSYS=FEDORA
fi
elif [ -f /etc/SuSE-release ]; then
INSTALLSYS=SUSE
elif [ -f /etc/slackware-version ] ; then
INSTALLSYS=SLACKWARE
elif [ -f /etc/arch-release ] ; then

View File

@ -161,7 +161,13 @@ if [ -n "INSTALLSYS" ]; then
if [ -f /etc/debian_version ]; then
INSTALLSYS=DEBIAN
elif [ -f /etc/redhat-release ]; then
INSTALLSYS=FEDORA
if [ -d /etc/sysconfig/network-scripts/ ]; then
INSTALLSYS=REDHAT
else
INSTALLSYS=FEDORA
fi
elif [ -f /etc/SuSE-release ]; then
INSTALLSYS=SUSE
elif [ -f /etc/slackware-version ] ; then
INSTALLSYS=SLACKWARE
elif [ -f /etc/arch-release ] ; then
@ -216,7 +222,7 @@ case "$TARGET" in
echo "Installing Debian-specific configuration..."
SPARSE=yes
;;
FEDORA)
FEDORA|REDHAT)
echo "Installing Redhat/Fedora-specific configuration..."
;;
SLACKWARE)
@ -230,7 +236,7 @@ case "$TARGET" in
DEST="/etc/rc.d"
INIT="$PRODUCT"
;;
LINUX)
LINUX|SUSE)
;;
*)
echo "ERROR: Unknown TARGET \"$TARGET\"" >&2
@ -303,7 +309,7 @@ case $TARGET in
DEBIAN)
install_file init.debian.sh ${DESTDIR}/etc/init.d/$PRODUCT 0544
;;
FEDORA)
FEDORA|REDHAT)
install_file init.fedora.sh ${DESTDIR}/etc/init.d/$PRODUCT 0544
;;
ARCHLINUX)

View File

@ -153,9 +153,15 @@ if [ -n "INSTALLSYS" ]; then
if [ -f /etc/debian_version ]; then
INSTALLSYS=DEBIAN
elif [ -f /etc/redhat-release ]; then
INSTALLSYS=FEDORA
if [ -d /etc/sysconfig/network-scripts/ ]; then
INSTALLSYS=REDHAT
else
INSTALLSYS=FEDORA
fi
elif [ -f /etc/slackware-version ] ; then
INSTALLSYS=SLACKWARE
elif [ -f /etc/SuSE-release ]; then
INSTALLSYS=SUSE
elif [ -f /etc/arch-release ] ; then
INSTALLSYS=ARCHLINUX
else
@ -270,7 +276,7 @@ case "$TARGET" in
echo "Installing Debian-specific configuration..."
SPARSE=yes
;;
FEDORA)
FEDORA|REDHAT)
echo "Installing Redhat/Fedora-specific configuration..."
;;
SLACKWARE)
@ -346,7 +352,7 @@ case $TARGET in
DEBIAN)
install_file init.debian.sh ${DESTDIR}/etc/init.d/$PRODUCT 0544
;;
FEDORA)
FEDORA|REDHAT)
install_file init.fedora.sh ${DESTDIR}/etc/init.d/$PRODUCT 0544
;;
ARCHLINUX)