summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-05 17:16:04 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-05 17:16:19 +0100
commite2d128b128d59d1da29d452bd56f4d9ab33feeb4 (patch)
treeec1ff5c963fe055e8ecf930e8f1099c51c45df7e
parent603842fae6e82d808c3d75339aeb88b1ebed94a8 (diff)
base-files: finetuning, verbose mount output
-rwxr-xr-xpackage/base-files/src/etc/init.d/fs7
-rwxr-xr-xpackage/base-files/src/etc/mdev/fs6
2 files changed, 5 insertions, 8 deletions
diff --git a/package/base-files/src/etc/init.d/fs b/package/base-files/src/etc/init.d/fs
index 0e6401351..b6adb4ce4 100755
--- a/package/base-files/src/etc/init.d/fs
+++ b/package/base-files/src/etc/init.d/fs
@@ -35,16 +35,13 @@ for fs in $fstypes; do
logger -t 'Filesystem' "checking $fs filesystem on $disk"
fsck -p $disk >/dev/null 2>&1
}
- logger -t 'Filesystem' "Mounting $disk to $mnt"
mkdir -p $mnt > /dev/null 2>&1
if [ -b $disk ]; then
- mount $disk > /dev/null 2>&1
+ logger -t 'Filesystem' "Mounting $disk to $mnt"
+ mount $disk
else
logger -s -t 'Filesystem' "Skipping mounting $disk, device file missing"
fi
- if [ $? -ne 0 ];then
- logger -s -t 'Filesystem' "Mounting $disk failed with $?"
- fi
else
logger -s -t 'Filesystem' "No $procfs filesystem in kernel"
fi
diff --git a/package/base-files/src/etc/mdev/fs b/package/base-files/src/etc/mdev/fs
index eb60379e6..678aadc8a 100755
--- a/package/base-files/src/etc/mdev/fs
+++ b/package/base-files/src/etc/mdev/fs
@@ -47,9 +47,9 @@ adk_mount() {
grep $procfs /proc/filesystems >/dev/null 2>&1
if [ $? -eq 0 ];then
logger -t mdev "Mounting $disk to $mnt"
- mount $mnt 2>/dev/null
- if [ $? -ne 0 ];then
- logger -s -t 'Filesystem' "Mounting $disk failed"
+ mount $mnt
+ if [ $? -ne 0 ]; then
+ logger -t mdev "Mounting $disk failed"
fi
else
logger -t mdev "Required filesystem $procfs not available"