forked from firerpa/lamda
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·39 lines (30 loc) · 1.04 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·39 lines (30 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/system/bin/sh
ABI=$(getprop ro.product.cpu.abi)
SERVER=$TMPDIR/lamda-server-$ABI.tar.gz
BB="/data/adb/magisk/busybox"
USRDIR=/data/usr
if [ -d "/data/adb/ksu/" ]; then
BB="/data/adb/ksu/bin/busybox"
fi
export LATESTARTSERVICE=true
ui_print ".____ ________ _____ "
ui_print "| | _____ _____ \______ \ / _ \ "
ui_print "| | \__ \ / \ | | \ / /_\ \ "
ui_print "| |___ / __ \_| Y Y \ | | \/ | \ "
ui_print "|_______ \(____ /|__|_| / /_______ /\____|__ / "
ui_print " \/ \/ \/ \/ \/ "
ui_print " installer "
pushd $(pwd)
cd $MODPATH
if [ ! -f $SERVER ]; then
abort "lamda-server-${ABI}.tar.gz not found in archive"
fi
ui_print "- Extracting server files"
$BB tar -xzf $SERVER
ui_print "- Placing configs"
mkdir -p ${USRDIR}
cp -af $TMPDIR/adb_keys ${USRDIR}/.adb_keys
cp -af $TMPDIR/properties.local ${USRDIR}
cp -af $TMPDIR/lamda.pem ${USRDIR}
ui_print "- Please reboot your device"
popd