aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-26 13:21:03 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-10-26 13:27:17 +0000
commit5c209973398ca29521b9304fe9db8ecdfdda5407 (patch)
treeee494209d456506783ff5988c9bf1f74a6084176
parent188e04ef1340fabd8efbff5edfbbbb301b5a6740 (diff)
downloadalpine-conf-5c209973398ca29521b9304fe9db8ecdfdda5407.tar.bz2
alpine-conf-5c209973398ca29521b9304fe9db8ecdfdda5407.tar.xz
setup-apkcache: add help text
-rw-r--r--setup-apkcache.in18
1 files changed, 17 insertions, 1 deletions
diff --git a/setup-apkcache.in b/setup-apkcache.in
index 6c956e8..fd8e275 100644
--- a/setup-apkcache.in
+++ b/setup-apkcache.in
@@ -74,6 +74,18 @@ is_mounted_ro() {
return 1
}
+apk_cache_help() {
+ cat <<__EOF__
+
+Packages installed from network can be cached locally to be available during
+boot, before the network is started. Specifying a directory here will make apk
+cache the packages locally in this directory.
+
+Enter 'none' if you do not want to cache packages from network.
+
+__EOF__
+}
+
while getopts "h" opt; do
case $opt in
h) usage;;
@@ -104,8 +116,12 @@ fi
cachedir=$1
while [ -z "$cachedir" ]; do
- echo -n "Where would you like to store apk cache? (or 'none') [$suggestion] "
+ echo -n "Enter apk cache directory (or '?' or 'none') [$suggestion]: "
default_read cachedir $suggestion
+ if [ "$cachedir" = "?" ]; then
+ apk_cache_help
+ cachedir=
+ fi
done
if [ "$cachedir" = "none" ]; then