diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-07-11 16:09:29 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-07-11 16:09:29 +0200 |
commit | 4a9a3f1a06b2d180b80a4ec17f0c4b4003773316 (patch) | |
tree | 99864452e0488fb691cef8626cc4331e8f0c5c6a /package/base-files/src/etc/init.d/mount | |
parent | 9961e5898f70db51ffc4f093e5d0777bb9b287ff (diff) |
fix cifs mounts on bootup, mount -a after network initialization. add LD_LIBRARY_PATH for raspberry pi special vc tools
Diffstat (limited to 'package/base-files/src/etc/init.d/mount')
-rw-r--r-- | package/base-files/src/etc/init.d/mount | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/package/base-files/src/etc/init.d/mount b/package/base-files/src/etc/init.d/mount new file mode 100644 index 000000000..f0df597e5 --- /dev/null +++ b/package/base-files/src/etc/init.d/mount @@ -0,0 +1,10 @@ +#!/bin/sh +#INIT 99 +[[ $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 |