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