Configure archiving by default as part of the setup-teslausb script, but make it possible to skip.

This commit is contained in:
cimryan
2018-11-03 10:11:16 -07:00
parent fe7ab50ab1
commit aa8e9adbee
2 changed files with 6 additions and 2 deletions

View File

@@ -83,7 +83,6 @@ Follow the instructions corresponding to the technology you'd like to use to hos
wget https://raw.githubusercontent.com/cimryan/teslausb/master/setup/pi/setup-teslausb wget https://raw.githubusercontent.com/cimryan/teslausb/master/setup/pi/setup-teslausb
chmod +x setup-teslausb chmod +x setup-teslausb
./setup-teslausb ./setup-teslausb
/root/configure.sh
``` ```
1. Run this command: 1. Run this command:
``` ```

View File

@@ -4,7 +4,7 @@ REPO=${REPO:-cimryan}
BRANCH=${BRANCH:-master} BRANCH=${BRANCH:-master}
HEADLESS_SETUP=${HEADLESS_SETUP:-false} HEADLESS_SETUP=${HEADLESS_SETUP:-false}
USE_LED_FOR_SETUP_PROGRESS=true USE_LED_FOR_SETUP_PROGRESS=true
CONFIGURE_ARCHIVING=${CONFIGURE_ARCHIVING:-true}
if ! [ $(id -u) = 0 ] if ! [ $(id -u) = 0 ]
then then
@@ -228,6 +228,11 @@ headless_setup_progress_flash 4
headless_setup_mark_setup_success headless_setup_mark_setup_success
if [ "$CONFIGURE_ARCHIVING" = true ]
then
/root/configure.sh
fi
make_root_fs_readonly make_root_fs_readonly
# If USE_LED_FOR_SETUP_PROGRESS = true. # If USE_LED_FOR_SETUP_PROGRESS = true.