Update of /cvsroot/devil-linux/build/config/etc/init.d
In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv15980/config/etc/init.d
Modified Files:
Tag: rel-1-2-patches
mountfs
Log Message:
- new option in /etc/sysconfig/config to disable the auto start of MD and
LVM
Index: mountfs
===================================================================
RCS file: /cvsroot/devil-linux/build/config/etc/init.d/mountfs,v
retrieving revision 1.35.2.7
retrieving revision 1.35.2.8
diff -u -d -r1.35.2.7 -r1.35.2.8
--- mountfs 6 Oct 2006 15:14:53 -0000 1.35.2.7
+++ mountfs 20 Apr 2007 13:21:46 -0000 1.35.2.8
@@ -83,7 +83,7 @@
start)
# start RAID if tools and config file are installed
- if [ -x /sbin/mdadm ]; then
+ if [ -x /sbin/mdadm ] && [ "$DISABLE_MD_AUTOSTART" != "yes" ] ; then
echo "Starting RAID:"
modprobe -k md
if [ -e /etc/mdadm.conf ]; then
@@ -101,7 +101,7 @@
fi
# start LVM if tools are installed
- if [ -x /sbin/vgscan ] && [ -x /sbin/vgchange ]; then
+ if [ -x /sbin/vgscan ] && [ -x /sbin/vgchange ] && [ "$DISABLE_LVM_AUTOSTART" != "yes" ] ; then
echo "Starting LVM"
# if we have lvm2
|