From ddd3a916e8310f47feb9bd56569f0c34c5d0bd9c Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 17 Nov 2017 22:57:23 +0100 Subject: [PATCH] - skel-root/hd51: show hdd icon in frontdisplay --- skel-root/armbox/hd51/lib/mdev/fs/mdev-mount | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/skel-root/armbox/hd51/lib/mdev/fs/mdev-mount b/skel-root/armbox/hd51/lib/mdev/fs/mdev-mount index 4ed65246..9685fee4 100755 --- a/skel-root/armbox/hd51/lib/mdev/fs/mdev-mount +++ b/skel-root/armbox/hd51/lib/mdev/fs/mdev-mount @@ -86,6 +86,7 @@ case "$ACTION" in done if [ $RET1 = 0 ]; then create_symlinks + echo 1 > /proc/stb/lcd/symbol_hdd else LOGWARN "mount /dev/$MDEV $MOUNTPOINT failed with $RET1" LOGWARN " $OUT1" @@ -103,6 +104,9 @@ case "$ACTION" in if [ $RET = 0 ]; then rmdir $MOUNTPOINT remove_symlinks + if ! grep -q "[hs]d[a-z][0-9]" /proc/mounts; then + echo 0 > /proc/stb/lcd/symbol_hdd + fi else LOGWARN "umount $MOUNTBASE/$MDEV failed with $RET" fi