[Lunar-commits] r15213 - lunar/trunk/var/lib/lunar/functions
Auke Kok
sofar at lunar-linux.org
Thu Jun 2 07:48:57 UTC 2005
Author: sofar
Date: 2005-06-02 07:48:56 +0000 (Thu, 02 Jun 2005)
New Revision: 15213
Modified:
lunar/trunk/var/lib/lunar/functions/misc.lunar
Log:
Moving these functions into misc.lunar as they are required to be present at all times.
Modified: lunar/trunk/var/lib/lunar/functions/misc.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/misc.lunar 2005-06-02 07:35:32 UTC (rev 15212)
+++ lunar/trunk/var/lib/lunar/functions/misc.lunar 2005-06-02 07:48:56 UTC (rev 15213)
@@ -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