Skip to content

Commit

Permalink
commit 352211994 on 20201125
Browse files Browse the repository at this point in the history
  • Loading branch information
SDRausty committed Nov 25, 2020
1 parent 784d222 commit 6e29c71
Show file tree
Hide file tree
Showing 11 changed files with 153 additions and 194 deletions.
2 changes: 1 addition & 1 deletion .conf/VERSIONID
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.376
2.0.377
155 changes: 88 additions & 67 deletions archlinuxconfig.bash

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion knownconfigurations.bash
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ PROOTSTMNT+=""
fi
if [[ "$KOE" = 0 ]]
then
PROOTSTMNT+="--kill-on-exit "
PROOTSTMNT+="--kill-on-exit --sysvipc "
fi
PROOTSTMNT+="--link2symlink -i \"\$2:wheel\" -0 -r $INSTALLDIR "
# file var/binds/fbindexample.prs has a few more examples
Expand Down
17 changes: 9 additions & 8 deletions necessaryfunctions.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ LC_TYPE=("LANG" "LANGUAGE" "LC_ADDRESS" "LC_COLLATE" "LC_CTYPE" "LC_IDENTIFICATI

_ADDADDS_() {
_ADDAUSER_
_PREPMOTS_
_ADDMOTA_
_ADDMOTD_
_ADDMOTO_
Expand Down Expand Up @@ -279,12 +280,12 @@ fi
declare -g AR3AR="\${@:3}"
_PRINTUSAGE_() {
printf "\\e]2;%s\\007" "TermuxArch $STARTBIN help 📲"
printf "\\n\\e[1;32m%s\\e[0;32m%s\\n\\n" "$STARTBIN" " start Arch Linux as root. This account is reserved for system administration."
printf "\\e[1;32m%s\\e[0;32m%s\\n\\n" "$STARTBIN c[ommand] command" " run Arch Linux command from Termux as root user."
printf "\\e[1;32m%s\\e[0;32m%s\\e[1;32m%s\\e[0;32m%s\\n\\n" "$STARTBIN l[ogin] | u[ser] user" " login as user. This option is preferred when installing software and using the command 'makeyay'."
printf "\\e[1;32m%s\\e[0;32m%s\\e[1;32m%s\\e[0;32m%s\\n\\n" "$STARTBIN el[ogin] | eu[ser] user" " use alternate elogin or euser option to login as user. This option is preferred when using the command 'git' in shared storage."
printf "\\n\\e[1;32m%s\\e[0;32m%s\\n\\n" "$STARTBIN" " start Arch Linux as root. This account is reserved for system administration. Please exercise caution when using the system administrator account."
printf "\\e[1;32m%s\\e[0;32m%s\\e[1;32m%s\\e[0;32m%s\\n\\n" "$STARTBIN c[ommand] command" " run Arch Linux command from Termux as root user. Quoting multiple commands can assit when passing multiple arguments; " "$STARTBIN c 'whoami ; cat /etc/pacman.d/mirrorlist'" ". Please pass commands through the system administrator account with caution."
printf "\\e[1;32m%s\\e[0;32m%s\\e[1;32m%s\\e[0;32m%s\\n\\n" "$STARTBIN l[ogin] | u[ser] user" " login as user. This option is preferred when installing software from a user account with the 'sudo' command."
printf "\\e[1;32m%s\\e[0;32m%s\\e[1;32m%s\\e[0;32m%s\\n\\n" "$STARTBIN el[ogin] | eu[ser] user" " login as user; Use alternate elogin or euser option to login as user. This option is preferred when using the 'git' command."
printf "\\e[1;32m%s\\e[0;32m%s\\e[1;32m%s\\e[0;32m%s\\e[1;32m%s\\e[0;32m%s\\n\\n" "$STARTBIN r[aw]" " construct the " "$STARTBIN " "proot statement from exec.../bin/. For example " "$STARTBIN r su " "will exec su in Arch Linux."
printf "\\e[1;32m%s\\e[0;32m%s\\e[1;32m%s\\e[0;32m%s\\n\\n\\e[0m" "$STARTBIN s[u] user command" " login as user and execute command. Please use " "$STARTBIN c addauser user " "first to create this user and user's home directory."
printf "\\e[1;32m%s\\e[0;32m%s\\e[1;32m%s\\e[0;32m%s\\e[1;32m%s\\e[0;32m%s\\n\\n\\e[0m" "$STARTBIN s[u] user command" " login as user and execute command. Quoting multiple commands can assit when passing multiple arguments; " "$STARTBIN s user 'whoami ; vim /etc/pacman.d/mirrorlist'" ". Please use " "$STARTBIN c 'addauser user'" " first to create a user account and user home directory."
}
# [] Default Arch Linux in Termux PRoot root login.
if [[ -z "\${1:-}" ]]
Expand Down Expand Up @@ -336,17 +337,16 @@ printf "%s\\n" "$PROOTSTMNTU /bin/su - \"\$2\" ||:" >> "$STARTBIN"
cat >> "$STARTBIN" <<- EOM
set -Eeuo pipefail
printf '\033]2; $STARTBIN login user [options] 📲 \007'
# [raw ARGS] Construct the 'startarch' proot statement. For example 'startarch r su' will exec su in Arch Linux. See PROOTSTMNT for more options; share your thoughts at https://github.com/sdrausty/TermuxArch/issues and https://github.com/sdrausty/TermuxArch/pulls.
# [raw ARGS] Construct the 'startarch' proot statement. For example 'startarch r su' will exec su in Arch Linux. See PROOTSTMNT for more options; share your thoughts at https://github.com/SDRausty/TermuxArch/issues and https://github.com/SDRausty/TermuxArch/pulls.
elif [[ "\${1//-}" = [Rr]* ]]
then
printf '\033]2; $STARTBIN raw ARGS 📲 \007'
printf '\033]2; $STARTBIN raw %s 📲 \007' "\$@"
set +Eeuo pipefail
umask 0022
EOM
printf "%s\\n" "$PROOTSTMNT /bin/\"\$2\" ||:" >> "$STARTBIN"
cat >> "$STARTBIN" <<- EOM
set -Eeuo pipefail
printf '\033]2; $STARTBIN raw ARGS 📲 \007'
# [su user command] Login as user and execute command. Use 'addauser user' first to create this user and user's home directory.
elif [[ "\${1//-}" = [Ss]* ]]
then
Expand All @@ -357,6 +357,7 @@ touch $INSTALLDIR/root/.chushlogin
else
touch $INSTALLDIR/home/"\$2"/.chushlogin
fi
printf '\033]2; %s 📲 \007' "$STARTBIN s \$2 \$AR3AR"
set +Eeuo pipefail
umask 0022
EOM
Expand Down
2 changes: 1 addition & 1 deletion printoutstatements.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ FLHDR1[1]="# IFS=$'\\n\\t'"
FLHDR1[2]="set -Eeuo pipefail"
FLHDR1[3]="shopt -s nullglob globstar"
FLHDR1[4]="unset LD_PRELOAD"
FLHDR1[5]="VERSIONID=2.0.375"
FLHDR1[5]="VERSIONID=2.0.376"
FLHDR1[6]=" "
FLHDRP[0]="## BEGIN #####################################################################"
FLHDRP[1]=""
Expand Down
49 changes: 14 additions & 35 deletions setupTermuxArch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# command 'setupTermuxArch h[elp]' has information how to use this file
################################################################################
IFS=$'\n\t'
VERSIONID=2.0.375
VERSIONID=2.0.376
set -Eeuo pipefail
shopt -s nullglob globstar
umask 0022
Expand Down Expand Up @@ -60,27 +60,7 @@ trap '_STRPSIGNAL_ $LINENO $BASH_COMMAND $?' HUP INT TERM
trap '_STRPQUIT_ $LINENO $BASH_COMMAND $?' QUIT

_ARG2DIR_() { # argument as ROOTDIR
if [[ -z "${@:-}" ]]
then
ARG2=arch
elif [[ "${#@}" = 1 ]]
then
if [[ "${PCR:-}" = 0 ]]
then
ARG2=arch
elif [[ "${REFCR:-}" = 0 ]]
then
ARG2=arch
else
ARG2="${@:1}"
fi
elif [[ "${#@}" = 2 ]]
then
ARG2="${@:2}"
else
printf "%s\\n" "error exit" && exit
fi
ARG2="${ARG2##$HOME/}"
ARG2="${@:2:1}"
if [[ -z "${ARG2:-}" ]]
then
ROOTDIR=/arch
Expand Down Expand Up @@ -133,7 +113,7 @@ cp "$TAMPDIR/setupTermuxArch" "${0##*/}"
cd "$WDIR" # change directory back to working directory
[[ -z "${ARGS:-}" ]] && printf "\\e[1;32mFile \\e[0;32m'%s'\\e[1;32m UPDATED\\e[1;34m:\\e[0;32m run 'bash %s' again if this automatic update was unsuccessful.\\n\\e[1;32mRESTARTED \\e[0;32m'%s'\\e[1;34m:\\e[1;32m CONTINUING...\\n\\n\\e[0m" "${0##*/}" "${0##*/}" "${0##*/}" || printf "\\e[0;32m'%s'\\e[1;32m UPDATED\\e[1;34m:\\e[0;32m run 'bash %s' again if this automatic update was unsuccessful.\\n\\e[1;32mRESTARTED \\e[0;32m'%s'\\e[1;34m:\\e[1;32m CONTINUING...\\n\\n\\e[0m" "${0##*/} $ARGS" "${0##*/} $ARGS" "${0##*/} $ARGS"
# restart with updated version
exec "$WFDIR/${0##*/}" "$ARGS"
. "$WFDIR/${0##*/}" "h"
fi
cd "$TAMPDIR"
}
Expand Down Expand Up @@ -409,7 +389,7 @@ if [[ "$ROOTDIR" = "" ]]
then
ROOTDIR=arch
fi
INSTALLDIR="$(printf "%s\\n" "$HOME/${ROOTDIR%/}" | sed 's#//*#/#g')"
INSTALLDIR="$(printf "%s\\n" "$HOME${ROOTDIR%/}" | sed 's#//*#/#g')"
}

_NAMESTARTARCH_() {
Expand Down Expand Up @@ -485,7 +465,7 @@ _INTROREFRESH_ "$@"
elif [[ "$2" = [Rr]* ]]
then
shift
printf "\\n\\e[1;32m%s\\e[1;34m: \\e[0;32m%s '%s' %s\\n\\e[0m" "Setting mode" "minimal refresh; You can use" "${0##*/} re[fresh]" "for full refresh."
printf "\\n\\e[1;32m%s\\e[1;34m: \\e[0;32m%s '%s' %s\\n\\e[0m" "Setting mode" "minimal refresh; You can use" "${0##*/} re[fresh]" "for full system refresh."
_PRPREFRESH_ "1"
_ARG2DIR_ "$@"
_PREPTERMUXARCH_
Expand Down Expand Up @@ -540,7 +520,7 @@ _INTROREFRESH_ "$@"
elif [[ "$3" = [Rr]* ]]
then
shift 2
printf "\\n\\e[1;32m%s\\e[1;34m: \\e[0;32m%s '%s' %s\\n\\e[0m" "Setting mode" "minimal refresh; Use" "${0##*/} re[fresh]" "for full refresh."
printf "\\n\\e[1;32m%s\\e[1;34m: \\e[0;32m%s '%s' %s\\n\\e[0m" "Setting mode" "minimal refresh; Use" "${0##*/} re[fresh]" "for full system refresh."
_PRPREFRESH_ "1"
_ARG2DIR_ "$@"
_PREPTERMUXARCH_
Expand Down Expand Up @@ -568,7 +548,6 @@ _EDITORCHOOSER_
_PRPREFRESH_() {
printf "\\n%s\\n" "Refresh mode is set to refresh mode $1; Initializing system refresh..."
LCR="$1"
REFCR=0
}

_PRINTCONFLOADED_() {
Expand Down Expand Up @@ -941,21 +920,20 @@ elif [[ "${1//-}" = [Oo]* ]]
then
printf "\\nSetting mode to option.\\n"
EDO01LCR=0
printf "\\n\\e[0;32mSetting mode\\e[1;34m : \\e[1;32mupdate Termux tools with minimal refresh with refresh user directories\\e[1;34m :\\e[0;32m For a full refresh you can use the%s \\e[1;32m'%s' \\e[0;32m%s\\e[1;34m...\\n\\e[0m" "" "${0##*/} ref[resh]" "command"
printf "\\n\\e[0;32mSetting mode\\e[1;34m : \\e[1;32mupdate Termux tools with minimal refresh with refresh user directories\\e[1;34m :\\e[0;32m For a full system refresh you can use the%s \\e[1;32m'%s' \\e[0;32m%s\\e[1;34m...\\n\\e[0m" "" "${0##*/} ref[resh]" "command"
_PRPREFRESH_ "2"
_ARG2DIR_ "$@"
_INTROREFRESH_ "$@"
## [p[urge] [customdir]] Remove Arch Linux.
elif [[ "${1//-}" = [Pp]* ]]
then
printf "\\nSetting mode to purge.\\n"
PCR=0
_ARG2DIR_ "$@"
_RMARCHQ_
## [q[emu] [refresh] [customdir]] Install alternate architecture on smartphone with https://github.com/qemu/QEMU emulation. Issue [Implementing QEMU #25](https://github.com/TermuxArch/TermuxArch/issues/25) has more information.
## [q[emu] [manual] [install|refresh] [customdir]] Install alternate architecture on smartphone with https://github.com/qemu/QEMU emulation. Issue [Implementing QEMU #25](https://github.com/TermuxArch/TermuxArch/issues/25) has more information.
elif [[ "${1//-}" = [Qq]* ]]
then
printf "\\nSetting mode to qemu.\\n"
printf "\\nSetting mode to QEMU [install|refresh] [customdir].\\n"
_OPT1_ "$@"
_QEMU_
_INTRO_ "$@"
Expand All @@ -978,28 +956,29 @@ _INTROREFRESH_ "$@"
## [re [customdir]] Refresh the Arch Linux in Termux PRoot scripts created by TermuxArch. Useful for refreshing the root user's home directory and user home directories and the TermuxArch generated scripts to their newest version.
elif [[ "${1//-}" = [Rr][Ee] ]]
then
printf "\\n\\e[0;32mSetting mode\\e[1;34m: \\e[1;32mminimal refresh with refresh user directories\\e[1;34m:\\e[0;32m For a full refresh you can use the \\e[1;32m'%s' \\e[0;32m%s\\e[1;34m...\\n\\e[0m" "${0##*/} refresh" "command"
printf "\\n\\e[0;32mSetting mode\\e[1;34m: \\e[1;32mminimal refresh with refresh user directories\\e[1;34m:\\e[0;32m For a full system refresh you can use the \\e[1;32m'%s' \\e[0;32m%s\\e[1;34m...\\n\\e[0m" "${0##*/} refresh" "command"
_PRPREFRESH_ "2"
_ARG2DIR_ "$@"
_INTROREFRESH_ "$@"
## [r [customdir]] Refresh the Arch Linux in Termux PRoot scripts created by TermuxArch. Useful for refreshing the root user's home directory and the TermuxArch generated scripts to their newest version.
elif [[ "${1//-}" = [Rr] ]]
then
printf "\\n\\e[0;32mSetting mode\\e[1;34m: \\e[1;32mminimal refresh\\e[1;34m:\\e[0;32m For a full refresh you can use the \\e[1;32m'%s' \\e[0;32m%s\\e[1;34m...\\n\\e[0m" "${0##*/} refresh" "command"
printf "\\n\\e[0;32mSetting mode\\e[1;34m: \\e[1;32mminimal refresh\\e[1;34m:\\e[0;32m For a full system refresh you can use the \\e[1;32m'%s' \\e[0;32m%s\\e[1;34m...\\n\\e[0m" "${0##*/} refresh" "command"
_PRPREFRESH_ "1"
_ARG2DIR_ "$@"
_INTROREFRESH_ "$@"
## [u[pdateTermuxTools] [refresh] [customdir]] Developing implementation : Update installation with Termux tools.
elif [[ "${1//-}" = [Uu]* ]]
then
EDO01LCR=0
printf "\\n\\e[0;32mSetting mode\\e[1;34m : \\e[1;32mupdate Termux tools with minimal refresh with refresh user directories\\e[1;34m :\\e[0;32m For a full refresh you can use the%s \\e[1;32m'%s' \\e[0;32m%s\\e[1;34m...\\n\\e[0m" "" "${0##*/} ref[resh]" "command"
printf "\\n\\e[0;32mSetting mode\\e[1;34m : \\e[1;32mupdate Termux tools with minimal refresh with refresh user directories\\e[1;34m :\\e[0;32m For a full system refresh you can use the%s \\e[1;32m'%s' \\e[0;32m%s\\e[1;34m...\\n\\e[0m" "" "${0##*/} ref[resh]" "command"
_PRPREFRESH_ "2"
_ARG2DIR_ "$@"
_INTROREFRESH_ "$@"
## [v[isualshortcut] [refresh] [customdir]] Install alternate architecture on smartphone with https://github.com/qemu/QEMU emulation. Issues [Expanding setupTermuxArch so visually impaired users can install Orca screen reader (assistive technology) and have VNC support added easily. #34](https://github.com/TermuxArch/TermuxArch/issues/34) have more information about this option.
## [v[isualshortcut] [manual] [install|refresh] [customdir]] Install alternate architecture on smartphone with https://github.com/qemu/QEMU emulation. Issues [Expanding setupTermuxArch so visually impaired users can install Orca screen reader (assistive technology) and have VNC support added easily. #34](https://github.com/TermuxArch/TermuxArch/issues/34) have more information about this option.
elif [[ "${1//-}" = [Vv]* ]]
then
printf "\\nSetting mode to visualshortcut [install|refresh] [customdir].\\n"
ABILIST64="$(getprop ro.product.cpu.abilist64)"
CPUABI="$(getprop ro.product.cpu.abi)"
if [[ $CPUABI == *86* ]]
Expand Down
49 changes: 14 additions & 35 deletions setupTermuxArch.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# command 'setupTermuxArch h[elp]' has information how to use this file
################################################################################
IFS=$'\n\t'
VERSIONID=2.0.375
VERSIONID=2.0.376
set -Eeuo pipefail
shopt -s nullglob globstar
umask 0022
Expand Down Expand Up @@ -60,27 +60,7 @@ trap '_STRPSIGNAL_ $LINENO $BASH_COMMAND $?' HUP INT TERM
trap '_STRPQUIT_ $LINENO $BASH_COMMAND $?' QUIT

_ARG2DIR_() { # argument as ROOTDIR
if [[ -z "${@:-}" ]]
then
ARG2=arch
elif [[ "${#@}" = 1 ]]
then
if [[ "${PCR:-}" = 0 ]]
then
ARG2=arch
elif [[ "${REFCR:-}" = 0 ]]
then
ARG2=arch
else
ARG2="${@:1}"
fi
elif [[ "${#@}" = 2 ]]
then
ARG2="${@:2}"
else
printf "%s\\n" "error exit" && exit
fi
ARG2="${ARG2##$HOME/}"
ARG2="${@:2:1}"
if [[ -z "${ARG2:-}" ]]
then
ROOTDIR=/arch
Expand Down Expand Up @@ -133,7 +113,7 @@ cp "$TAMPDIR/setupTermuxArch" "${0##*/}"
cd "$WDIR" # change directory back to working directory
[[ -z "${ARGS:-}" ]] && printf "\\e[1;32mFile \\e[0;32m'%s'\\e[1;32m UPDATED\\e[1;34m:\\e[0;32m run 'bash %s' again if this automatic update was unsuccessful.\\n\\e[1;32mRESTARTED \\e[0;32m'%s'\\e[1;34m:\\e[1;32m CONTINUING...\\n\\n\\e[0m" "${0##*/}" "${0##*/}" "${0##*/}" || printf "\\e[0;32m'%s'\\e[1;32m UPDATED\\e[1;34m:\\e[0;32m run 'bash %s' again if this automatic update was unsuccessful.\\n\\e[1;32mRESTARTED \\e[0;32m'%s'\\e[1;34m:\\e[1;32m CONTINUING...\\n\\n\\e[0m" "${0##*/} $ARGS" "${0##*/} $ARGS" "${0##*/} $ARGS"
# restart with updated version
exec "$WFDIR/${0##*/}" "$ARGS"
. "$WFDIR/${0##*/}" "h"
fi
cd "$TAMPDIR"
}
Expand Down Expand Up @@ -409,7 +389,7 @@ if [[ "$ROOTDIR" = "" ]]
then
ROOTDIR=arch
fi
INSTALLDIR="$(printf "%s\\n" "$HOME/${ROOTDIR%/}" | sed 's#//*#/#g')"
INSTALLDIR="$(printf "%s\\n" "$HOME${ROOTDIR%/}" | sed 's#//*#/#g')"
}

_NAMESTARTARCH_() {
Expand Down Expand Up @@ -485,7 +465,7 @@ _INTROREFRESH_ "$@"
elif [[ "$2" = [Rr]* ]]
then
shift
printf "\\n\\e[1;32m%s\\e[1;34m: \\e[0;32m%s '%s' %s\\n\\e[0m" "Setting mode" "minimal refresh; You can use" "${0##*/} re[fresh]" "for full refresh."
printf "\\n\\e[1;32m%s\\e[1;34m: \\e[0;32m%s '%s' %s\\n\\e[0m" "Setting mode" "minimal refresh; You can use" "${0##*/} re[fresh]" "for full system refresh."
_PRPREFRESH_ "1"
_ARG2DIR_ "$@"
_PREPTERMUXARCH_
Expand Down Expand Up @@ -540,7 +520,7 @@ _INTROREFRESH_ "$@"
elif [[ "$3" = [Rr]* ]]
then
shift 2
printf "\\n\\e[1;32m%s\\e[1;34m: \\e[0;32m%s '%s' %s\\n\\e[0m" "Setting mode" "minimal refresh; Use" "${0##*/} re[fresh]" "for full refresh."
printf "\\n\\e[1;32m%s\\e[1;34m: \\e[0;32m%s '%s' %s\\n\\e[0m" "Setting mode" "minimal refresh; Use" "${0##*/} re[fresh]" "for full system refresh."
_PRPREFRESH_ "1"
_ARG2DIR_ "$@"
_PREPTERMUXARCH_
Expand Down Expand Up @@ -568,7 +548,6 @@ _EDITORCHOOSER_
_PRPREFRESH_() {
printf "\\n%s\\n" "Refresh mode is set to refresh mode $1; Initializing system refresh..."
LCR="$1"
REFCR=0
}

_PRINTCONFLOADED_() {
Expand Down Expand Up @@ -941,21 +920,20 @@ elif [[ "${1//-}" = [Oo]* ]]
then
printf "\\nSetting mode to option.\\n"
EDO01LCR=0
printf "\\n\\e[0;32mSetting mode\\e[1;34m : \\e[1;32mupdate Termux tools with minimal refresh with refresh user directories\\e[1;34m :\\e[0;32m For a full refresh you can use the%s \\e[1;32m'%s' \\e[0;32m%s\\e[1;34m...\\n\\e[0m" "" "${0##*/} ref[resh]" "command"
printf "\\n\\e[0;32mSetting mode\\e[1;34m : \\e[1;32mupdate Termux tools with minimal refresh with refresh user directories\\e[1;34m :\\e[0;32m For a full system refresh you can use the%s \\e[1;32m'%s' \\e[0;32m%s\\e[1;34m...\\n\\e[0m" "" "${0##*/} ref[resh]" "command"
_PRPREFRESH_ "2"
_ARG2DIR_ "$@"
_INTROREFRESH_ "$@"
## [p[urge] [customdir]] Remove Arch Linux.
elif [[ "${1//-}" = [Pp]* ]]
then
printf "\\nSetting mode to purge.\\n"
PCR=0
_ARG2DIR_ "$@"
_RMARCHQ_
## [q[emu] [refresh] [customdir]] Install alternate architecture on smartphone with https://github.com/qemu/QEMU emulation. Issue [Implementing QEMU #25](https://github.com/TermuxArch/TermuxArch/issues/25) has more information.
## [q[emu] [manual] [install|refresh] [customdir]] Install alternate architecture on smartphone with https://github.com/qemu/QEMU emulation. Issue [Implementing QEMU #25](https://github.com/TermuxArch/TermuxArch/issues/25) has more information.
elif [[ "${1//-}" = [Qq]* ]]
then
printf "\\nSetting mode to qemu.\\n"
printf "\\nSetting mode to QEMU [install|refresh] [customdir].\\n"
_OPT1_ "$@"
_QEMU_
_INTRO_ "$@"
Expand All @@ -978,28 +956,29 @@ _INTROREFRESH_ "$@"
## [re [customdir]] Refresh the Arch Linux in Termux PRoot scripts created by TermuxArch. Useful for refreshing the root user's home directory and user home directories and the TermuxArch generated scripts to their newest version.
elif [[ "${1//-}" = [Rr][Ee] ]]
then
printf "\\n\\e[0;32mSetting mode\\e[1;34m: \\e[1;32mminimal refresh with refresh user directories\\e[1;34m:\\e[0;32m For a full refresh you can use the \\e[1;32m'%s' \\e[0;32m%s\\e[1;34m...\\n\\e[0m" "${0##*/} refresh" "command"
printf "\\n\\e[0;32mSetting mode\\e[1;34m: \\e[1;32mminimal refresh with refresh user directories\\e[1;34m:\\e[0;32m For a full system refresh you can use the \\e[1;32m'%s' \\e[0;32m%s\\e[1;34m...\\n\\e[0m" "${0##*/} refresh" "command"
_PRPREFRESH_ "2"
_ARG2DIR_ "$@"
_INTROREFRESH_ "$@"
## [r [customdir]] Refresh the Arch Linux in Termux PRoot scripts created by TermuxArch. Useful for refreshing the root user's home directory and the TermuxArch generated scripts to their newest version.
elif [[ "${1//-}" = [Rr] ]]
then
printf "\\n\\e[0;32mSetting mode\\e[1;34m: \\e[1;32mminimal refresh\\e[1;34m:\\e[0;32m For a full refresh you can use the \\e[1;32m'%s' \\e[0;32m%s\\e[1;34m...\\n\\e[0m" "${0##*/} refresh" "command"
printf "\\n\\e[0;32mSetting mode\\e[1;34m: \\e[1;32mminimal refresh\\e[1;34m:\\e[0;32m For a full system refresh you can use the \\e[1;32m'%s' \\e[0;32m%s\\e[1;34m...\\n\\e[0m" "${0##*/} refresh" "command"
_PRPREFRESH_ "1"
_ARG2DIR_ "$@"
_INTROREFRESH_ "$@"
## [u[pdateTermuxTools] [refresh] [customdir]] Developing implementation : Update installation with Termux tools.
elif [[ "${1//-}" = [Uu]* ]]
then
EDO01LCR=0
printf "\\n\\e[0;32mSetting mode\\e[1;34m : \\e[1;32mupdate Termux tools with minimal refresh with refresh user directories\\e[1;34m :\\e[0;32m For a full refresh you can use the%s \\e[1;32m'%s' \\e[0;32m%s\\e[1;34m...\\n\\e[0m" "" "${0##*/} ref[resh]" "command"
printf "\\n\\e[0;32mSetting mode\\e[1;34m : \\e[1;32mupdate Termux tools with minimal refresh with refresh user directories\\e[1;34m :\\e[0;32m For a full system refresh you can use the%s \\e[1;32m'%s' \\e[0;32m%s\\e[1;34m...\\n\\e[0m" "" "${0##*/} ref[resh]" "command"
_PRPREFRESH_ "2"
_ARG2DIR_ "$@"
_INTROREFRESH_ "$@"
## [v[isualshortcut] [refresh] [customdir]] Install alternate architecture on smartphone with https://github.com/qemu/QEMU emulation. Issues [Expanding setupTermuxArch so visually impaired users can install Orca screen reader (assistive technology) and have VNC support added easily. #34](https://github.com/TermuxArch/TermuxArch/issues/34) have more information about this option.
## [v[isualshortcut] [manual] [install|refresh] [customdir]] Install alternate architecture on smartphone with https://github.com/qemu/QEMU emulation. Issues [Expanding setupTermuxArch so visually impaired users can install Orca screen reader (assistive technology) and have VNC support added easily. #34](https://github.com/TermuxArch/TermuxArch/issues/34) have more information about this option.
elif [[ "${1//-}" = [Vv]* ]]
then
printf "\\nSetting mode to visualshortcut [install|refresh] [customdir].\\n"
ABILIST64="$(getprop ro.product.cpu.abilist64)"
CPUABI="$(getprop ro.product.cpu.abi)"
if [[ $CPUABI == *86* ]]
Expand Down
Loading

1 comment on commit 6e29c71

@SDRausty
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.