[Lunar-commits] r23781 - lunar/trunk/sbin

Auke Kok sofar at lunar-linux.org
Fri Mar 23 05:07:21 CET 2007


Author: sofar
Date: 2007-03-23 05:07:21 +0100 (Fri, 23 Mar 2007)
New Revision: 23781

Modified:
   lunar/trunk/sbin/lrm
Log:
Bugfix: cosmetic error when linning moonbase


Modified: lunar/trunk/sbin/lrm
===================================================================
--- lunar/trunk/sbin/lrm	2007-03-22 04:13:10 UTC (rev 23780)
+++ lunar/trunk/sbin/lrm	2007-03-23 04:07:21 UTC (rev 23781)
@@ -196,12 +196,14 @@
     verbose_msg "removing module from dependency listing and configs"
     remove_depends $MODULE
     # remove alias if required
-    for ALIAS in `cut -d: -f1 $MOONBASE/aliases`; do
-      if [ "$(get_local_config `echo LUNAR_ALIAS_${ALIAS:1}`)" == "$MODULE" ]; then
-        verbose_msg "removing alias mapping from \"$ALIAS\" to \"$MODULE\""
-        unset_local_config `echo LUNAR_ALIAS_${ALIAS:1}`
-      fi
-    done
+    if [ $MODULE != moonbase ] ; then
+      for ALIAS in `cut -d: -f1 $MOONBASE/aliases`; do
+        if [ "$(get_local_config `echo LUNAR_ALIAS_${ALIAS:1}`)" == "$MODULE" ]; then
+          verbose_msg "removing alias mapping from \"$ALIAS\" to \"$MODULE\""
+          unset_local_config `echo LUNAR_ALIAS_${ALIAS:1}`
+        fi
+      done
+    fi
     # restart xinetd after xinetd.confs have been removed by lrm...
     if [ -n "$SERVICES" -a -n "$XINETD" ] ; then
       verbose_msg "restarting xinetd"



More information about the Lunar-commits mailing list