1 2 3 4 5 6 7 8 9 10
#!/bin/sh #INIT 60 [[ $1 = autostart ]] || exit 0 # any lvm volumes to activate? [ -x /usr/sbin/lvm ] && { lvm vgscan; lvm vgchange -ay;} # check and mount all filesystems not / [ -f /etc/fstab ] && { fsck -p >/dev/null; mount -a; swapon -a;} exit 0