Permalink
Browse files

dainbread this broken chkconfig issue: just list everything, which is…

… what it should do anyway. fixes bug #265
  • Loading branch information...
1 parent 21791a5 commit 8c1b914855f932f538a7fc1e6a4981cc8ee5743b Auke Kok committed Oct 3, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 lservices/lservices
View
@@ -103,7 +103,7 @@ service_menu() {(
list_initd_services() {
(
unset IFS
- for SERVICE in $(chkconfig --list | grep '0:' | cut -f1 | sort) ; do
+ for SERVICE in $(find /etc/init.d/ -type f -exec basename {} \; | sort) ; do
if grep -q '^# chkconfig: ' /etc/init.d/$SERVICE ; then
DESCRIPTION="$(grep '^# description: ' /etc/init.d/$SERVICE | sed -e 's/^# description: //g' -e 's/\\/.../' -e 's/\t/ /g')"
if service_is_enabled $SERVICE ; then

0 comments on commit 8c1b914

Please sign in to comment.