summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files')
-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"