diff options
Diffstat (limited to 'recipes/trdx-config/files/udev-late-mount')
-rwxr-xr-x | recipes/trdx-config/files/udev-late-mount | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/recipes/trdx-config/files/udev-late-mount b/recipes/trdx-config/files/udev-late-mount deleted file mode 100755 index f0506e0..0000000 --- a/recipes/trdx-config/files/udev-late-mount +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -# -# mount drives missed during the udev 'add' action due to not yet avaliable filesytem -# -# Based on debian apmd scripts - -PATH=/bin:/usr/bin:/sbin:/usr/sbin - -[ -f /etc/default/rcS ] && . /etc/default/rcS - -case "$1" in - start) - #get all found drives - LIST=`ls /dev/sd??` - - for DRIVEFILE in $LIST - do - #if the drive is not in the already mounted drives generate an add event - DRIVE=`basename $DRIVEFILE` - cat /proc/mounts | awk '{print $1}' | grep -q "^$DRIVEFILE" || udevadm trigger --subsystem-match=block --sysname-match=$DRIVE --action=add ; echo "mounted $DRIVEFILE" - done - ;; - *) - echo "Usage: /etc/init.d/udev-late-mount {start}" - exit 1 - ;; -esac - -exit 0 - - |