remove always reboot on migration

This commit is contained in:
rootzoll 2020-02-14 23:18:49 +01:00
parent 4d2bf28b26
commit 29351ebeb1
2 changed files with 3 additions and 10 deletions

View file

@ -418,8 +418,6 @@ case $CHOICE in
;;
MIGRATION)
sudo /home/admin/config.scripts/blitz.migration.sh "import-gui"
echo "PRESS ENTER to continue/reboot"
sudo shutdown -r now
exit 0
;;
X)

View file

@ -15,18 +15,13 @@ if [ "$EUID" -ne 0 ]; then
exit 1
fi
# check if data drive is mounted - other wise cannot operate
isMounted=$(sudo df | grep -c /mnt/hdd)
if [ ${isMounted} -eq 0 ]; then
echo "# FAIL check why /mnt/hdd is not available/mounted"
echo "error='datadrive not found'"
exit 1
fi
###################
# STATUS
###################
# check if data drive is mounted - other wise cannot operate
isMounted=$(sudo df | grep -c /mnt/hdd)
# gathering system info
isBTRFS=$(lsblk -o FSTYPE,MOUNTPOINT | grep /mnt/hdd | awk '$1=$1' | cut -d " " -f 1 | grep -c btrfs)