summaryrefslogtreecommitdiff
path: root/package/base-files/src/etc/init.d/mount
blob: 6c59d7bab1cb44f667da525b7fa8d52849d78e4d (plain)
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