remove debug, remove gentoo support until tested

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-01-18 16:37:09 +01:00
parent 559670ab4f
commit aa870e0124
2 changed files with 8 additions and 15 deletions

View file

@ -21,9 +21,6 @@
# Check whether the given name will be started on boot or not
#
set -x
exec >&2
os=$("$__explorer/os")
runlevel=$("$__explorer/runlevel")
name="$__object_id"
@ -36,10 +33,6 @@ case "$os" in
[ -f "/etc/rc$runlevel.d/S"??"$name" ] || state="absent"
;;
gentoo)
echo rc-update add \"$name\" default
;;
centos|fedora|owl|redhat)
state=$(chkconfig --level "$runlevel" \"$name\" || echo absent)
[ "$state" ] || state="present"
@ -52,4 +45,3 @@ case "$os" in
esac
echo $state
exit 1

View file

@ -43,9 +43,10 @@ case "$state_should" in
echo update-rc.d \"$name\" defaults
;;
gentoo)
echo rc-update add \"$name\" default
;;
# Disabled until the explorer is checked
# gentoo)
# echo rc-update add \"$name\" default
# ;;
centos|fedora|owl|redhat)
echo chkconfig \"$name\" on
@ -64,9 +65,10 @@ case "$state_should" in
echo update-rc.d -f \"$name\" remove
;;
gentoo)
echo rc-update del \"$name\"
;;
# Disabled until the explorer is checked
# gentoo)
# echo rc-update del \"$name\"
# ;;
centos|fedora|owl|redhat)
echo chkconfig \"$name\" off
@ -80,7 +82,6 @@ case "$state_should" in
;;
*)
echo "Unknown state: $state_should" >&2
exit 1