# rcS - runlevel compatibility # # This task runs the old sysv-rc startup scripts. start on stopped virtualfs #stop on runlevel description "Initialize Locical Volume Manager (LVM)" author "Harald Kueller " console logged # Note: there can be no previous runlevel here, if we have one it's bad # information (we enter rc1 not rcS for maintenance). Run /etc/init.d/rc # without information so that it defaults to previous=N runlevel=S. console output script source /etc/event.d/functions if [ -f /sbin/vgscan ]; then /sbin/vgscan >/dev/null 2>&1 status_message "Scanning of Volumes....." for i in `vgdisplay|grep "VG Name"|awk '{print $3}'`; do vgchange -a -y $i status_message "Volume Aktivation of $i ..." done fi end script