Commit 5c209973 authored by Natanael Copa's avatar Natanael Copa
Browse files

setup-apkcache: add help text

parent 188e04ef
......@@ -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.
while getopts "h" opt; do
case $opt in
h) usage;;
......@@ -104,8 +116,12 @@ fi
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
if [ "$cachedir" = "none" ]; then
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment