mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Add Gentoo/Lunar/Redhat Init Scripts
Every distribution has slightly different requirements for their init scripts. Because of this the zfs package contains several init scripts for various distributions. These scripts have been contributed by, and are supported by, the larger zfs community. Init scripts for Gentoo/Lunar/Redhat have been contributed by: Gentoo - devsk <devsku@gmail.com> Lunar - Jean-Michel Bruenn <jean.bruenn@ip-minds.de> Redhat - Fajar A. Nugraha <list@fajar.net>
This commit is contained in:
@@ -11795,6 +11795,8 @@ $as_echo_n "checking linux distribution... " >&6; }
|
||||
VENDOR=slackware ;
|
||||
elif test -f /etc/gentoo-release ; then
|
||||
VENDOR=gentoo ;
|
||||
elif test -f /etc/lunar.release ; then
|
||||
VENDOR=lunar ;
|
||||
else
|
||||
VENDOR= ;
|
||||
fi
|
||||
@@ -11805,12 +11807,14 @@ $as_echo "$VENDOR" >&6; }
|
||||
{ $as_echo "$as_me:$LINENO: checking default package type" >&5
|
||||
$as_echo_n "checking default package type... " >&6; }
|
||||
case "$VENDOR" in
|
||||
fedora) DEFAULT_PACKAGE=rpm ;;
|
||||
redhat) DEFAULT_PACKAGE=rpm ;;
|
||||
sles) DEFAULT_PACKAGE=rpm ;;
|
||||
fedora) DEFAULT_PACKAGE=rpm ;;
|
||||
ubuntu) DEFAULT_PACKAGE=deb ;;
|
||||
debian) DEFAULT_PACKAGE=deb ;;
|
||||
sles) DEFAULT_PACKAGE=rpm ;;
|
||||
slackware) DEFAULT_PACKAGE=tgz ;;
|
||||
gentoo) DEFAULT_PACKAGE=tgz ;;
|
||||
lunar) DEFAULT_PACKAGE=tgz ;;
|
||||
*) DEFAULT_PACKAGE=rpm ;;
|
||||
esac
|
||||
|
||||
@@ -11821,12 +11825,14 @@ $as_echo "$DEFAULT_PACKAGE" >&6; }
|
||||
{ $as_echo "$as_me:$LINENO: checking default init script type" >&5
|
||||
$as_echo_n "checking default init script type... " >&6; }
|
||||
case "$VENDOR" in
|
||||
redhat) DEFAULT_INIT_SCRIPT=redhat ;;
|
||||
fedora) DEFAULT_INIT_SCRIPT=fedora ;;
|
||||
redhat) DEFAULT_INIT_SCRIPT=fedora ;;
|
||||
sles) DEFAULT_INIT_SCRIPT=lsb ;;
|
||||
ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
|
||||
debian) DEFAULT_INIT_SCRIPT=lsb ;;
|
||||
sles) DEFAULT_INIT_SCRIPT=lsb ;;
|
||||
slackware) DEFAULT_INIT_SCRIPT=lsb ;;
|
||||
gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
|
||||
lunar) DEFAULT_INIT_SCRIPT=lunar ;;
|
||||
*) DEFAULT_INIT_SCRIPT=lsb ;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user