Small adjustments to prevent seccomp errors
This commit is contained in:
parent
375cd0e42b
commit
ef62272df7
@ -13,10 +13,6 @@
|
|||||||
# Preparation
|
# Preparation
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
|
|
||||||
# This path should work in any cases
|
|
||||||
TMPDIR=/dev/tmp
|
|
||||||
|
|
||||||
INSTALLER=$TMPDIR/install
|
|
||||||
COMMONDIR=$INSTALLER/common
|
COMMONDIR=$INSTALLER/common
|
||||||
APK=$COMMONDIR/magisk.apk
|
APK=$COMMONDIR/magisk.apk
|
||||||
CHROMEDIR=$INSTALLER/chromeos
|
CHROMEDIR=$INSTALLER/chromeos
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
# EX_ARM, EX_X86, BB_ARM, and BB_X86 should be generated in build.py
|
# EX_ARM, EX_X86, BB_ARM, and BB_X86 should be generated in build.py
|
||||||
getdir() {
|
|
||||||
case "$1" in
|
|
||||||
*/*) dir=${1%/*}; [ -z $dir ] && echo "/" || echo $dir ;;
|
|
||||||
*) echo "." ;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
extract_bb() {
|
extract_bb() {
|
||||||
EXBIN=$BBDIR/b64xz; BBBIN=$BBDIR/busybox
|
EXBIN=$BBDIR/b64xz; BBBIN=$BBDIR/busybox
|
||||||
touch $EXBIN; touch $BBBIN; chmod 755 $EXBIN $BBBIN
|
touch $EXBIN; touch $BBBIN; chmod 755 $EXBIN $BBBIN
|
||||||
@ -29,12 +23,12 @@ case "$1" in
|
|||||||
extract_bb
|
extract_bb
|
||||||
;;
|
;;
|
||||||
"indep")
|
"indep")
|
||||||
TMPDIR="`getdir "${BASH_SOURCE:-$0}"`"; setup_bb
|
TMPDIR=.; setup_bb; shift
|
||||||
shift; exec sh "$@"
|
exec /system/bin/sh "$@"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
TMPDIR=/dev/tmp; rm -rf $TMPDIR 2>/dev/null; setup_bb
|
export TMPDIR=/dev/tmp; rm -rf $TMPDIR 2>/dev/null; setup_bb
|
||||||
INSTALLER=$TMPDIR/install; mkdir -p $INSTALLER; unzip -o "$3" -d $INSTALLER >&2
|
export INSTALLER=$TMPDIR/install; mkdir -p $INSTALLER; unzip -o "$3" -d $INSTALLER >&2
|
||||||
exec sh $INSTALLER/META-INF/com/google/android/updater-script $@
|
exec sh $INSTALLER/META-INF/com/google/android/updater-script "$@"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user