summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-07-08 12:28:13 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-07-22 16:43:12 +0200
commit16b6da640080a8bc3edd6ce0407aa892c5c85288 (patch)
tree37cfb97efc05b4d028c1ead7fbe2768a2d3ff8bb
parent3785f87930f71d52b4a0f1856b53b8e0b4cb9729 (diff)
create mountpoint
-rwxr-xr-xpackage/base-files/src/etc/init.d/fs8
1 files changed, 5 insertions, 3 deletions
diff --git a/package/base-files/src/etc/init.d/fs b/package/base-files/src/etc/init.d/fs
index dd893142f..9527070a1 100755
--- a/package/base-files/src/etc/init.d/fs
+++ b/package/base-files/src/etc/init.d/fs
@@ -23,15 +23,17 @@ fstypes="ext2 ext3 ext4 xfs vfat ntfs"
for fs in $fstypes; do
disks=$(grep -v "^#" /etc/fstab|grep $fs|awk '{ print $1 }')
for disk in $disks; do
- logger -t '' "Found $disk with filesystem $fs"
+ logger -t 'Filesystem' "Found $disk with filesystem $fs"
+ mnt=$(grep -v "^#" /etc/fstab|grep "$disk "|awk '{ print $2 }')
grep $fs /proc/filesystems >/dev/null 2>&1
if [ $? -eq 0 ];then
[ -x /usr/sbin/fsck.$fs ] && {
logger -t 'Filesystem' "checking $fs filesystem on $disk"
fsck -p $disk >/dev/null 2>&1
}
- logger -t '' "Mounting local filesystems"
- mount $disk >/dev/null 2>&1
+ logger -t 'Filesystem' "Mounting local filesystems"
+ mkdir -p $mnt > /dev/null 2>&1
+ mount $disk
else
logger -s -t 'Filesystem' "No $fs filesystem in kernel"
fi