[Lunar-commits] r26050 - lunar-tools/trunk/lservices
    Auke Kok 
    sofar at lunar-linux.org
       
    Wed Oct  3 22:30:49 CEST 2007
    
    
  
Author: sofar
Date: 2007-10-03 22:30:48 +0200 (Wed, 03 Oct 2007)
New Revision: 26050
Modified:
   lunar-tools/trunk/lservices/lservices
Log:
dainbread this broken chkconfig issue: just list everything, which is what it should do anyway. fixes bug #265
Modified: lunar-tools/trunk/lservices/lservices
===================================================================
--- lunar-tools/trunk/lservices/lservices	2007-10-03 20:19:37 UTC (rev 26049)
+++ lunar-tools/trunk/lservices/lservices	2007-10-03 20:30:48 UTC (rev 26050)
@@ -103,7 +103,7 @@
 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
    
    
More information about the Lunar-commits
mailing list