remove debug, remove gentoo support until tested
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
559670ab4f
commit
aa870e0124
2 changed files with 8 additions and 15 deletions
|
@ -21,9 +21,6 @@
|
||||||
# Check whether the given name will be started on boot or not
|
# Check whether the given name will be started on boot or not
|
||||||
#
|
#
|
||||||
|
|
||||||
set -x
|
|
||||||
exec >&2
|
|
||||||
|
|
||||||
os=$("$__explorer/os")
|
os=$("$__explorer/os")
|
||||||
runlevel=$("$__explorer/runlevel")
|
runlevel=$("$__explorer/runlevel")
|
||||||
name="$__object_id"
|
name="$__object_id"
|
||||||
|
@ -36,10 +33,6 @@ case "$os" in
|
||||||
[ -f "/etc/rc$runlevel.d/S"??"$name" ] || state="absent"
|
[ -f "/etc/rc$runlevel.d/S"??"$name" ] || state="absent"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
gentoo)
|
|
||||||
echo rc-update add \"$name\" default
|
|
||||||
;;
|
|
||||||
|
|
||||||
centos|fedora|owl|redhat)
|
centos|fedora|owl|redhat)
|
||||||
state=$(chkconfig --level "$runlevel" \"$name\" || echo absent)
|
state=$(chkconfig --level "$runlevel" \"$name\" || echo absent)
|
||||||
[ "$state" ] || state="present"
|
[ "$state" ] || state="present"
|
||||||
|
@ -52,4 +45,3 @@ case "$os" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo $state
|
echo $state
|
||||||
exit 1
|
|
||||||
|
|
|
@ -43,9 +43,10 @@ case "$state_should" in
|
||||||
echo update-rc.d \"$name\" defaults
|
echo update-rc.d \"$name\" defaults
|
||||||
;;
|
;;
|
||||||
|
|
||||||
gentoo)
|
# Disabled until the explorer is checked
|
||||||
echo rc-update add \"$name\" default
|
# gentoo)
|
||||||
;;
|
# echo rc-update add \"$name\" default
|
||||||
|
# ;;
|
||||||
|
|
||||||
centos|fedora|owl|redhat)
|
centos|fedora|owl|redhat)
|
||||||
echo chkconfig \"$name\" on
|
echo chkconfig \"$name\" on
|
||||||
|
@ -64,9 +65,10 @@ case "$state_should" in
|
||||||
echo update-rc.d -f \"$name\" remove
|
echo update-rc.d -f \"$name\" remove
|
||||||
;;
|
;;
|
||||||
|
|
||||||
gentoo)
|
# Disabled until the explorer is checked
|
||||||
echo rc-update del \"$name\"
|
# gentoo)
|
||||||
;;
|
# echo rc-update del \"$name\"
|
||||||
|
# ;;
|
||||||
|
|
||||||
centos|fedora|owl|redhat)
|
centos|fedora|owl|redhat)
|
||||||
echo chkconfig \"$name\" off
|
echo chkconfig \"$name\" off
|
||||||
|
@ -80,7 +82,6 @@ case "$state_should" in
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "Unknown state: $state_should" >&2
|
echo "Unknown state: $state_should" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue