SVN: rc-scripts/trunk/rc.d/rc.shutdown

glen glen at pld-linux.org
Fri Nov 9 01:49:54 CET 2007


Author: glen
Date: Fri Nov  9 01:49:53 2007
New Revision: 9026

Modified:
   rc-scripts/trunk/rc.d/rc.shutdown
Log:
- add /etc/crypttab processing

Modified: rc-scripts/trunk/rc.d/rc.shutdown
==============================================================================
--- rc-scripts/trunk/rc.d/rc.shutdown	(original)
+++ rc-scripts/trunk/rc.d/rc.shutdown	Fri Nov  9 01:49:53 2007
@@ -145,6 +145,11 @@
 	_rebootwhat="vserver"
 fi
 
+if [ -f /etc/crypttab ]; then
+	show "Stopping disk encryption:"
+	halt_crypto && ok || fail
+fi
+
 if [ "$runlevel" = "0" ] ; then
 	show "The $_rebootwhat is halted"; ok
 	[ -f /fastboot ] && (show "On the next boot fsck will be skipped."; ok)


More information about the pld-cvs-commit mailing list