From e7b7172d7abb23808c9f14d4c00d903bebc1f64e Mon Sep 17 00:00:00 2001 From: rootzoll Date: Tue, 15 Jan 2019 15:13:19 +0100 Subject: [PATCH] UI fixes --- home.admin/00mainMenu.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/home.admin/00mainMenu.sh b/home.admin/00mainMenu.sh index fb9185e..2edd5e5 100755 --- a/home.admin/00mainMenu.sh +++ b/home.admin/00mainMenu.sh @@ -16,16 +16,19 @@ if [ ${hddExists} -eq 0 ]; then if [ ${noPartition} -eq 1 ]; then echo "***********************************************************" echo "WARNING: HDD HAS NO PARTITIONS" + echo "***********************************************************" echo "Press ENTER to create a Partition - or CTRL+C to abort" read key + echo "Creating Partition ..." sudo parted -s /dev/sda unit s mkpart primary `sudo parted /dev/sda unit s print free | grep 'Free Space' | tail -n 1` + echo "DONE." sleep 3 + else + echo "***********************************************************" + echo "WARNING: NO HDD FOUND -> Shutdown, connect HDD and restart." + echo "***********************************************************" + exit fi - - echo "***********************************************************" - echo "WARNING: NO HDD FOUND -> Shutdown, connect HDD and restart." - echo "***********************************************************" - exit fi # check data from _bootstrap.sh that was running on device setup