From 2d20af0dea81fb6827933b87d15608a68026fd29 Mon Sep 17 00:00:00 2001 From: Jeff Bilyk Date: Sat, 6 Aug 2011 17:25:11 -0400 Subject: setup-apklbu: work better in unattended / silent mode --- setup-apklbu.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/setup-apklbu.in b/setup-apklbu.in index a530841..ff1ff0a 100755 --- a/setup-apklbu.in +++ b/setup-apklbu.in @@ -13,7 +13,7 @@ Setup apk caching and lbu settings. options: -h Show this help -i Run in installer mode (usually only when called by setup-alpine) - -m Specify mountpoint under /media for lbu backups + -m Specify mountpoint under /media for lbu backups (default is usb) __EOF__ exit 1 } @@ -33,12 +33,15 @@ if [ "$VERBOSE" = "1" ]; then if [ "$setupapklbu" = "N" ] || [ "$setupapklbu" = "n" ]; then exit 0 fi + if [ -z $MOUNTPOINT ]; then + MOUNTPOINT="usb" + echo "Please enter mountpoint directory under /media for lbu [$MOUNTPOINT]:" + default_read MOUNTPOINT "$MOUNTPOINT" + fi fi if [ -z $MOUNTPOINT ]; then MOUNTPOINT="usb" - echo "Please enter mountpoint directory under /media for lbu [$MOUNTPOINT]:" - default_read MOUNTPOINT "$MOUNTPOINT" fi mountstatus="`mount | grep /media/${MOUNTPOINT}`" -- cgit v1.2.3