[Lunar-commits] r15214 - lunar/branches/stable/var/lib/lunar/functions

Auke Kok sofar at lunar-linux.org
Thu Jun 2 07:50:29 UTC 2005


Author: sofar
Date: 2005-06-02 07:50:27 +0000 (Thu, 02 Jun 2005)
New Revision: 15214

Modified:
   lunar/branches/stable/var/lib/lunar/functions/misc.lunar
Log:
Keeping lunar in sync these days on a daily base.


Modified: lunar/branches/stable/var/lib/lunar/functions/misc.lunar
===================================================================
--- lunar/branches/stable/var/lib/lunar/functions/misc.lunar	2005-06-02 07:48:56 UTC (rev 15213)
+++ lunar/branches/stable/var/lib/lunar/functions/misc.lunar	2005-06-02 07:50:27 UTC (rev 15214)
@@ -114,3 +114,31 @@
 }
 
 
+unmap_device()
+{
+    local DEVICE
+    for DEVICE in $(ls -1d /dev/[hs]d* 2> /dev/null); do
+        if [ "$(readlink -f $DEVICE)" == "$(readlink -f $1)" ]; then
+            echo $DEVICE
+            return 0
+        fi
+    done
+    echo $1
+    return 0
+}
+
+
+find_pam_aware()  {
+  local MODULE SECTION
+  debug_msg "find_pam_aware ($@)"
+
+  for MODULE in $(list_installed); do 
+    SECTION=$(find_section $MODULE)
+    if [ -d "$MOONBASE/$SECTION/$MODULE/pam.d" ] && 
+           [ "$MODULE" != "Linux-PAM" ]; then
+      echo $MODULE
+    fi
+  done < $MODULE_STATUS
+}
+
+



More information about the Lunar-commits mailing list