From e2d128b128d59d1da29d452bd56f4d9ab33feeb4 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 5 Nov 2016 17:16:04 +0100 Subject: base-files: finetuning, verbose mount output --- package/base-files/src/etc/init.d/fs | 7 ++----- package/base-files/src/etc/mdev/fs | 6 +++--- 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'package/base-files/src/etc') 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" -- cgit v1.2.3