volume script updates

This commit is contained in:
Edward Viaene
2018-06-22 08:22:35 +00:00
parent f01567a719
commit 376dd053c2
+2 -2
View File
@@ -10,8 +10,8 @@ if [ "`echo -n $DEVICE_FS`" == "" ] ; then
DEVICEEXISTS='' DEVICEEXISTS=''
while [[ -z $DEVICEEXISTS ]]; do while [[ -z $DEVICEEXISTS ]]; do
echo "checking $DEVICENAME" echo "checking $DEVICENAME"
DEVICEEXISTS=`ls -asl /dev/disk/by-uuid/ | grep "$DEVICENAME"` DEVICEEXISTS=`lsblk |grep "$DEVICENAME" |wc -l`
if [[ -z $DEVICEEXISTS ]]; then if [[ $DEVICEEXISTS != "1" ]]; then
sleep 15 sleep 15
fi fi
done done