diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-11-13 12:09:49 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-11-13 12:10:08 +0100 |
commit | 26bc6c9fe57e4e516cd4f3a6d133ceea84a1a9c3 (patch) | |
tree | 60cf05fc5dbd04127cd297e9c1461bef6030f25f /package/base-files/src/etc | |
parent | 5690ac325347bc61d8728005778cfad786e9c483 (diff) |
finetune disk mount scripts
Diffstat (limited to 'package/base-files/src/etc')
-rwxr-xr-x | package/base-files/src/etc/init.d/fs | 8 | ||||
-rwxr-xr-x | package/base-files/src/etc/mdev/fs | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/package/base-files/src/etc/init.d/fs b/package/base-files/src/etc/init.d/fs index b6adb4ce4..55e2c3449 100755 --- a/package/base-files/src/etc/init.d/fs +++ b/package/base-files/src/etc/init.d/fs @@ -6,14 +6,14 @@ [ -x /sbin/swapon ] && { grep swap /etc/fstab >/dev/null 2>&1 if [ $? -eq 0 ];then - logger -t '' "Activating swap" + logger -t 'SWAP' "Activating swap" swapon -a fi } # activate any logical volumes [ -x /usr/sbin/lvm ] && { - logger -t '' "Activating LVM volumes" + logger -t 'LVM' "Activating LVM volumes" lvm vgscan lvm vgchange -ay } @@ -40,10 +40,10 @@ for fs in $fstypes; do logger -t 'Filesystem' "Mounting $disk to $mnt" mount $disk else - logger -s -t 'Filesystem' "Skipping mounting $disk, device file missing" + logger -t 'Filesystem' "Skipping mounting $disk, device file missing" fi else - logger -s -t 'Filesystem' "No $procfs filesystem in kernel" + logger -t 'Filesystem' "No $procfs filesystem in kernel" fi done done diff --git a/package/base-files/src/etc/mdev/fs b/package/base-files/src/etc/mdev/fs index 678aadc8a..86c4cee2f 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 + mount $mnt 2>> /tmp/mount.err if [ $? -ne 0 ]; then - logger -t mdev "Mounting $disk failed" + logger -t mdev "Mounting $disk failed with $?" fi else logger -t mdev "Required filesystem $procfs not available" |