diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/libs/lib-ui-interactive.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index 4c0f8e8..a639214 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -97,8 +97,8 @@ interactive_set_clock() HARDWARECLOCK=$ANSWER_OPTION # timezone? - tzselect > $ANSWER || return 1 - TIMEZONE=$(cat $ANSWER) + TIMEZONE=`tzselect` || return 1 + # set system clock from hwclock - stolen from rc.sysinit local HWCLOCK_PARAMS="" @@ -159,8 +159,11 @@ interactive_autoprepare() if [ "$BOOT_PART_SIZE" = "" ]; then notify "ERROR: You have entered an invalid size, please enter again." else - if [ "$BOOT_PART_SIZE" -ge "$DISC_SIZE" -o "$BOOT_PART_SIZE" -lt "16" -o "$SBOOT_PART_SIZE" = "$DISC_SIZE" ]; then + if [ "$BOOT_PART_SIZE" -ge "$DISC_SIZE" -o "$SBOOT_PART_SIZE" = "$DISC_SIZE" ]; then notify "ERROR: You have entered a too large size, please enter again." + elif [ "$BOOT_PART_SIZE" -lt "16" ]; + then + notify "ERROR: You have entered a too small size, please enter again." else BOOT_PART_SET=1 fi |