summaryrefslogtreecommitdiff
path: root/setup-apklbu.in
diff options
context:
space:
mode:
authorJeff Bilyk <jbilyk@gmail.com>2011-08-06 17:25:11 -0400
committerJeff Bilyk <jbilyk@gmail.com>2011-08-06 17:25:11 -0400
commit2d20af0dea81fb6827933b87d15608a68026fd29 (patch)
tree3fbb19a2a01a1c2216adb7ad306e7007bc3e930a /setup-apklbu.in
parente85f3810117e6974ff771645077133a5202c74ad (diff)
downloadalpine-conf-2d20af0dea81fb6827933b87d15608a68026fd29.zip
setup-apklbu: work better in unattended / silent mode
Diffstat (limited to 'setup-apklbu.in')
-rwxr-xr-xsetup-apklbu.in9
1 files 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}`"