From 3778dd237dd17f73e0fe6f9a367e8aa401137f5e Mon Sep 17 00:00:00 2001 From: bill-auger Date: Wed, 11 May 2022 00:06:23 -0400 Subject: sq - extract install wizard --- configs/profile/root-image/etc/skel/.bash_profile | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/configs/profile/root-image/etc/skel/.bash_profile b/configs/profile/root-image/etc/skel/.bash_profile index dc8c7c7..3b79970 100644 --- a/configs/profile/root-image/etc/skel/.bash_profile +++ b/configs/profile/root-image/etc/skel/.bash_profile @@ -14,14 +14,20 @@ ENABLE_TTS_BRLTTY='_ENABLE_TTS_BRLTTY_' # [ '', 'true' ] - speech and braille # customize environment -SESSION_STATE_FILE=/var/lib/parabola-install-wizard/.session_state -SESSION_INIT_SCRIPT=/usr/lib/parabola-install-wizard/session-init.sh -INSTALL_WIZARD_SCRIPT=/usr/lib/parabola-install-wizard/install.sh +SESSION_STATE_FILE=/var/lib/parabola-install-wizard/.session_state # parabola-install-wizard +SESSION_INIT_SCRIPT=/usr/lib/parabola-install-wizard/session-init.sh # parabola-install-wizard +INSTALL_WIZARD_SCRIPT=/usr/lib/parabola-install-wizard/install.sh # parabola-install-wizard sudo /root/.remote-script.sh -sed -i 's|^SESSION=.*|SESSION=_UNDEFINED_|' ${SESSION_STATE_FILE} -(( $IS_INITIAL_TTY )) && sudo ${SESSION_INIT_SCRIPT} -Session=$(grep 'SESSION=' ${SESSION_STATE_FILE} | cut -d '=' -f 2) -sed -i 's|^SESSION=.*|SESSION=_UNDEFINED_|' ${SESSION_STATE_FILE} +if [[ -x ${SESSION_STATE_FILE} ]] && \ + [[ -x ${SESSION_INIT_SCRIPT} ]] && \ + [[ -x ${INSTALL_WIZARD_SCRIPT} ]] && +then sed -i 's|^SESSION=.*|SESSION=_UNDEFINED_|' ${SESSION_STATE_FILE} + (( $IS_INITIAL_TTY )) && sudo ${SESSION_INIT_SCRIPT} + Session=$(grep 'SESSION=' ${SESSION_STATE_FILE} | cut -d '=' -f 2) + sed -i 's|^SESSION=.*|SESSION=_UNDEFINED_|' ${SESSION_STATE_FILE} +else echo "LANG=en_US.UTF-8" > /etc/locale.conf + Session='cli' +fi export $(cat /etc/locale.conf) -- cgit v1.2.2