From 06c70ff8038289c8aa4cc50c8a6bf7c42ef3fc8b Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 10 Jun 2021 17:13:55 +0200 Subject: [PATCH] - mdev: fix mdev_helper call --- skel-root/hd1/lib/mdev/fs/mdev-mount | 8 ++++---- skel-root/hd2/lib/mdev/fs/mdev-mount | 8 ++++---- skel-root/hd5x/lib/mdev/fs/mdev-mount | 8 ++++---- skel-root/hd6x/lib/mdev/fs/mdev-mount | 8 ++++---- skel-root/vuduo/lib/mdev/fs/mdev-mount | 8 ++++---- skel-root/vuplus/lib/mdev/fs/mdev-mount | 8 ++++---- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/skel-root/hd1/lib/mdev/fs/mdev-mount b/skel-root/hd1/lib/mdev/fs/mdev-mount index 3887f4fa..c912ce1d 100755 --- a/skel-root/hd1/lib/mdev/fs/mdev-mount +++ b/skel-root/hd1/lib/mdev/fs/mdev-mount @@ -91,8 +91,8 @@ case "$ACTION" in LOGWARN " $OUT1" rmdir $MOUNTPOINT fi - if [ -x /bin/mdev_helper ]; then - /bin/mdev_helper + if which mdev_helper > /dev/null; then + mdev_helper fi ;; remove) @@ -106,8 +106,8 @@ case "$ACTION" in else LOGWARN "umount $MOUNTBASE/$MDEV failed with $RET" fi - if [ -x /bin/mdev_helper ]; then - /bin/mdev_helper + if which mdev_helper > /dev/null; then + mdev_helper fi ;; esac diff --git a/skel-root/hd2/lib/mdev/fs/mdev-mount b/skel-root/hd2/lib/mdev/fs/mdev-mount index 3887f4fa..c912ce1d 100755 --- a/skel-root/hd2/lib/mdev/fs/mdev-mount +++ b/skel-root/hd2/lib/mdev/fs/mdev-mount @@ -91,8 +91,8 @@ case "$ACTION" in LOGWARN " $OUT1" rmdir $MOUNTPOINT fi - if [ -x /bin/mdev_helper ]; then - /bin/mdev_helper + if which mdev_helper > /dev/null; then + mdev_helper fi ;; remove) @@ -106,8 +106,8 @@ case "$ACTION" in else LOGWARN "umount $MOUNTBASE/$MDEV failed with $RET" fi - if [ -x /bin/mdev_helper ]; then - /bin/mdev_helper + if which mdev_helper > /dev/null; then + mdev_helper fi ;; esac diff --git a/skel-root/hd5x/lib/mdev/fs/mdev-mount b/skel-root/hd5x/lib/mdev/fs/mdev-mount index 05015ac5..e8c701fc 100755 --- a/skel-root/hd5x/lib/mdev/fs/mdev-mount +++ b/skel-root/hd5x/lib/mdev/fs/mdev-mount @@ -92,8 +92,8 @@ case "$ACTION" in LOGWARN " $OUT1" rmdir $MOUNTPOINT fi - if [ -x /bin/mdev_helper ]; then - /bin/mdev_helper + if which mdev_helper > /dev/null; then + mdev_helper fi ;; remove) @@ -110,8 +110,8 @@ case "$ACTION" in else LOGWARN "umount $MOUNTBASE/$MDEV failed with $RET" fi - if [ -x /bin/mdev_helper ]; then - /bin/mdev_helper + if which mdev_helper > /dev/null; then + mdev_helper fi ;; esac diff --git a/skel-root/hd6x/lib/mdev/fs/mdev-mount b/skel-root/hd6x/lib/mdev/fs/mdev-mount index 05015ac5..e8c701fc 100755 --- a/skel-root/hd6x/lib/mdev/fs/mdev-mount +++ b/skel-root/hd6x/lib/mdev/fs/mdev-mount @@ -92,8 +92,8 @@ case "$ACTION" in LOGWARN " $OUT1" rmdir $MOUNTPOINT fi - if [ -x /bin/mdev_helper ]; then - /bin/mdev_helper + if which mdev_helper > /dev/null; then + mdev_helper fi ;; remove) @@ -110,8 +110,8 @@ case "$ACTION" in else LOGWARN "umount $MOUNTBASE/$MDEV failed with $RET" fi - if [ -x /bin/mdev_helper ]; then - /bin/mdev_helper + if which mdev_helper > /dev/null; then + mdev_helper fi ;; esac diff --git a/skel-root/vuduo/lib/mdev/fs/mdev-mount b/skel-root/vuduo/lib/mdev/fs/mdev-mount index 05015ac5..e8c701fc 100755 --- a/skel-root/vuduo/lib/mdev/fs/mdev-mount +++ b/skel-root/vuduo/lib/mdev/fs/mdev-mount @@ -92,8 +92,8 @@ case "$ACTION" in LOGWARN " $OUT1" rmdir $MOUNTPOINT fi - if [ -x /bin/mdev_helper ]; then - /bin/mdev_helper + if which mdev_helper > /dev/null; then + mdev_helper fi ;; remove) @@ -110,8 +110,8 @@ case "$ACTION" in else LOGWARN "umount $MOUNTBASE/$MDEV failed with $RET" fi - if [ -x /bin/mdev_helper ]; then - /bin/mdev_helper + if which mdev_helper > /dev/null; then + mdev_helper fi ;; esac diff --git a/skel-root/vuplus/lib/mdev/fs/mdev-mount b/skel-root/vuplus/lib/mdev/fs/mdev-mount index 05015ac5..e8c701fc 100755 --- a/skel-root/vuplus/lib/mdev/fs/mdev-mount +++ b/skel-root/vuplus/lib/mdev/fs/mdev-mount @@ -92,8 +92,8 @@ case "$ACTION" in LOGWARN " $OUT1" rmdir $MOUNTPOINT fi - if [ -x /bin/mdev_helper ]; then - /bin/mdev_helper + if which mdev_helper > /dev/null; then + mdev_helper fi ;; remove) @@ -110,8 +110,8 @@ case "$ACTION" in else LOGWARN "umount $MOUNTBASE/$MDEV failed with $RET" fi - if [ -x /bin/mdev_helper ]; then - /bin/mdev_helper + if which mdev_helper > /dev/null; then + mdev_helper fi ;; esac