summaryrefslogtreecommitdiff
path: root/package/base-files/src/etc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-13 12:09:49 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-13 12:10:08 +0100
commit26bc6c9fe57e4e516cd4f3a6d133ceea84a1a9c3 (patch)
tree60cf05fc5dbd04127cd297e9c1461bef6030f25f /package/base-files/src/etc
parent5690ac325347bc61d8728005778cfad786e9c483 (diff)
finetune disk mount scripts
Diffstat (limited to 'package/base-files/src/etc')
-rwxr-xr-xpackage/base-files/src/etc/init.d/fs8
-rwxr-xr-xpackage/base-files/src/etc/mdev/fs4
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"