Skip to content

Commit

Permalink
Commit on 20181010 branch master 39207453409287
Browse files Browse the repository at this point in the history
  • Loading branch information
SDRausty committed Oct 10, 2018
1 parent 367e837 commit b81d9cd
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
12 changes: 7 additions & 5 deletions archlinuxconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,14 @@ _ADDfbindprocstat8_() {
EOM
}

addfbindexample() {
_CFLHDRS_ var/binds/fbindexample.prs "# Create a new prs file to append the proot statement in $STARTBIN."
cat >> var/binds/fbindexample.prs <<- EOM
## THIS FILE WILL BE OVERWRITTEN AT REFRESH! CREATE A NEW FILE! This example file is included for convenience. Add as many proot statements and *.prs files as you want to; Create a new file similar to this file in this directory to append the proot statement on the fly.
addbindexample() {
_CFLHDRS_ var/binds/bindexample.prs "# Create a new prs file to append the proot statement in $STARTBIN."
cat >> var/binds/bindexample.prs <<- EOM
## THIS FILE WILL BE OVERWRITTEN AT REFRESH! COPY THIS FILE!
##
## Appending to the PRoot statement can be accomplished on the fly by creating a *.prs file in /var/binds. The format is straightforward: PROOTSTMNT+="option command ". The space is required before the last double quote. Then run \`${0##*/} r[e[f[resh]]]\` to append the proot statement on the fly. This shall renew the proot init statement and $STARTBIN. \`${0##*/} r[e[f[resh]]]\` will parse these files at refresh.
## This example file is included for convenience. Add as many proot statements and *.prs files as you wish; Create a new file similar to this one in this directory to append the proot statement on the fly. Appending the PRoot statement can be accomplished on the fly by copying this file in /var/binds. Then use \`setupTermuxArch.sh r[e[f[resh]]]\` to regenerate $STARTBIN.
##
## The format is straightforward: PROOTSTMNT+="option command ". The space is required before the last double quote. Then run \`${0##*/} r[e[f[resh]]]\` to append the proot statement on the fly. This shall renew the proot init statement and $STARTBIN. \`${0##*/} r[e[f[resh]]]\` will parse these files at refresh.
##
## \`info proot\` and \`man proot\` have more information about what can be configured in a proot init statement. Share more suitable configurations at https://github.com/sdrausty/TermuxArch/issues to improve TermuxArch. Reference https://raw.githubusercontent.com/proot-me/PRoot/master/doc/proot/manual.txt for details.
##
Expand Down
6 changes: 3 additions & 3 deletions knownconfigurations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# dm=curl # Uncomment to use curl as the download tool.
# dm=lftp # Uncomment to use lftp as the download tool.
# dm=wget # Uncomment to use wget as the download tool.
# _EXAMPLE_() { # Match the architecture on the device with one of the functions below. This is a guide for filling out the functions below. Alternatively, use the matrices below the functions, and fill th out instead.
# STYPE=md5sum # ( "" md5sum sha256sum sha512sum )
# _EXAMPLE_() { # Match the architecture on the device with one of the functions below. This is a guide for filling out the functions below. Alternatively, match the architecture with the matrices below these functions, and fill those out instead.
# STYPE=md5sum # ( "" md5sum sha256sum sha512sum )
# SRMFILE=ArchLinuxARM-armv7-latest.tar.gz.md5
# file=ArchLinuxARM-armv7-latest.tar.gz
# CMIRROR=os.archlinuxarm.org
Expand Down Expand Up @@ -91,7 +91,7 @@ SPECS_ARMV7LC_=( [DIST]="$CSYSTEM" [FILE]="ArchLinuxARM-armv7-chromebook-latest.
SPECS_X86_=( [DIST]="$CSYSTEM" [FILE]="" [PROTOCOL]="https" [RPATH]="/iso/2017.03.01/" [SITE]="archive.archlinux.org" [SFNM]="md5sums.txt" [STYPE]="md5sum" )
SPECS_X86_64_=( [DIST]="$CSYSTEM" [FILE]="" [PROTOCOL]="https" [RPATH]="/archlinux/iso/latest/" [SITE]="mirror.rackspace.com" [SFNM]="md5sums.txt" [STYPE]="md5sum" )

## To regenerate the start script use `setupTermuxArch.sh r[e[f[resh]]]`. Usage: PROOTSTMNT+="-b host_path:guest_path " The space is required before the last double quote. Appending to the PRoot statement can be accomplished on the fly by creating a *.prs file in /var/binds, and subsequently executing refresh. The format is straightforward, `PROOTSTMNT+="option command "`. For more information about configuring the proot init statement see `proot --help`, `info proot`, `man proot` and https://raw.githubusercontent.com/proot-me/PRoot/master/doc/proot/manual.txt for details, and /var/binds/fbindexample.prs. Use `setupTermuxArch.sh r[e[f[resh]]] [customdir]` to refresh a particular installation. This shall renew the proot init statement and startarch. Share more suitable configurations at https://github.com/sdrausty/TermuxArch/issues to improve TermuxArch.
## To regenerate the start script use `setupTermuxArch.sh r[e[f[resh]]]`. Usage: PROOTSTMNT+="-b host_path:guest_path " The space is required before the last double quote. Appending to the PRoot statement can be accomplished on the fly by creating a *.prs file in /var/binds, and subsequently executing refresh. The format is straightforward, `PROOTSTMNT+="option command "`. For more information about configuring the proot init statement see `proot --help`, `info proot`, `man proot` and https://raw.githubusercontent.com/proot-me/PRoot/master/doc/proot/manual.txt for details, and /var/binds/bindexample.prs. Use `setupTermuxArch.sh r[e[f[resh]]] [customdir]` to refresh a particular installation. This shall renew the proot init statement and startarch. Share more suitable configurations at https://github.com/sdrausty/TermuxArch/issues to improve TermuxArch.
_PR00TSTRING_() {
PROOTSTMNT="exec proot "
if [[ -z "${KID:-}" ]]
Expand Down
2 changes: 1 addition & 1 deletion necessaryfunctions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ _ADDADDS_() {
addcdtmp
addch
adddfa
addfbindexample
addbindexample
addbinds
addexd
addfibs
Expand Down
2 changes: 1 addition & 1 deletion printoutstatements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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=v1.6.6.id9804"
FLHDR1[5]="VERSIONID=v1.6.6.id3160"
FLHDR1[6]=" "
FLHDRP[0]="## BEGIN #######################################################################"
FLHDRP[1]=""
Expand Down
2 changes: 1 addition & 1 deletion setupTermuxArch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ IFS=$'\n\t'
set -Eeuo pipefail
shopt -s nullglob globstar
unset LD_PRELOAD
VERSIONID="v1.6.6.id9804"
VERSIONID="v1.6.6.id3160"

_SET_TRAP_ERROR_() { # Run on script error.
local RV="$?"
Expand Down
2 changes: 1 addition & 1 deletion setupTermuxArch.sha512
Original file line number Diff line number Diff line change
@@ -1 +1 @@
efe7bbdf6af8b63db6ab1e12cc37be0fce0d05b0bd11468dacc38d5ab5eb7015d1bf2561371e722c1b89b4858fa30de323f26a86d173c77d5de217e81324e673 setupTermuxArch.tar.gz
8695a1d3730c8c08e275982233260b009cd7a033357cbd0c4f17d3817d028249034b985b0ccf756dedc52d88612633a899f91b8c74df77d96eabfbdcf715fd8d setupTermuxArch.tar.gz
Binary file modified setupTermuxArch.tar.gz
Binary file not shown.

0 comments on commit b81d9cd

Please sign in to comment.