diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2020-02-16 00:03:55 -0500 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2020-03-27 19:32:36 -0400 |
commit | 66ad6fa683aa6b05e4f6fbd1bbbbb799f4b9cd93 (patch) | |
tree | ba4b3c08667fde10ce8672a6a53658f8494cbf64 /configs/profile/root-image/root/.language.sh | |
parent | 859b25f8af367b2e4e3dabc236c099ca85fe77ac (diff) |
boot calamares from .xinitrc
Diffstat (limited to 'configs/profile/root-image/root/.language.sh')
-rwxr-xr-x | configs/profile/root-image/root/.language.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configs/profile/root-image/root/.language.sh b/configs/profile/root-image/root/.language.sh index f3f6950..bc8e9f5 100755 --- a/configs/profile/root-image/root/.language.sh +++ b/configs/profile/root-image/root/.language.sh @@ -11,6 +11,10 @@ readonly LANG_DEFAULT='en_US.UTF-8' readonly KEYMAP_TITLE="System keymap selection" readonly KEYMAP_PROMPT="Choose your keymap:" readonly KEYMAP_DEFAULT='us' +readonly INTERFACE_TITLE="Launch installer or command-line" +readonly INTERFACE_PROMPT="Would you like to start the installer, or drop onto the command line?" +readonly INTERFACE_DEFAULT='calamares' +readonly INTERFACES=( 'calamares' 'wizard' 'cli' ) readonly -a LANGUAGES=( 'en_US.UTF-8' "English" \ 'eo' "Esperanto" \ @@ -196,4 +200,10 @@ then keymap=$(Prompt "$KEYMAP_TITLE" "$KEYMAP_PROMPT" $KEYMAP_DEFAULT "${KEYMAPS sed -i "s/^XKBMAP=.*/XKBMAP=${keymap}/" /root/.codecheck fi + +## prompt to launch installer or CLI ## + +interface=$(Prompt "$INTERFACE_TITLE" "$INTERFACE_PROMPT" $INTERFACE_DEFAULT "${INTERFACES[@]}") +[ "${interface}" == "" ] && interface=$INTERFACE_DEFAULT + clear |