summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-10-16 13:38:38 -0500
committerWaldemar Brodkorb <wbx@openadk.org>2014-10-16 13:38:46 -0500
commite8f07a17db6c11365fec98d2048fef7356210b8c (patch)
tree59d8c4919236dff4b081b70c3d03843300c3ae79 /package/base-files
parentd74c98569c8ff411767631398341867556e7d7f1 (diff)
fix local disk mount, use [[:blank:]]
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/src/etc/init.d/fs4
-rwxr-xr-xpackage/base-files/src/etc/mdev/fs2
2 files changed, 3 insertions, 3 deletions
diff --git a/package/base-files/src/etc/init.d/fs b/package/base-files/src/etc/init.d/fs
index 9527070a1..b110af3b9 100755
--- a/package/base-files/src/etc/init.d/fs
+++ b/package/base-files/src/etc/init.d/fs
@@ -24,14 +24,14 @@ for fs in $fstypes; do
disks=$(grep -v "^#" /etc/fstab|grep $fs|awk '{ print $1 }')
for disk in $disks; do
logger -t 'Filesystem' "Found $disk with filesystem $fs"
- mnt=$(grep -v "^#" /etc/fstab|grep "$disk "|awk '{ print $2 }')
+ mnt=$(grep -v "^#" /etc/fstab|grep "${disk}[[:blank:]]"|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 'Filesystem' "Mounting local filesystems"
+ logger -t 'Filesystem' "Mounting $disk to $mnt"
mkdir -p $mnt > /dev/null 2>&1
mount $disk
else
diff --git a/package/base-files/src/etc/mdev/fs b/package/base-files/src/etc/mdev/fs
index 6c8b08699..084ecd9a1 100755
--- a/package/base-files/src/etc/mdev/fs
+++ b/package/base-files/src/etc/mdev/fs
@@ -46,7 +46,7 @@ adk_mount() {
mkdir -p $mnt >/dev/null 2>&1
grep $procfs /proc/filesystems >/dev/null 2>&1
if [ $? -eq 0 ];then
- logger -t mdev "Mounting local filesystems"
+ logger -t mdev "Mounting $disk to $mnt"
mount $mnt
if [ $? -ne 0 ];then
logger -s -t 'Filesystem' "Mounting $disk failed"