mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-30 07:04:14 +01:00
Run loadpolicy.sh
synchronously (#225)
This commit is contained in:
parent
0bb1cfe3fc
commit
0646b8e07c
@ -515,6 +515,7 @@ if [ "$ROOT_SOL" = 'magisk' ] || [ "$ROOT_SOL" = '' ]; then
|
|||||||
#!/system/bin/sh
|
#!/system/bin/sh
|
||||||
mkdir -p /data/adb/magisk
|
mkdir -p /data/adb/magisk
|
||||||
cp /sbin/* /data/adb/magisk/
|
cp /sbin/* /data/adb/magisk/
|
||||||
|
sync
|
||||||
chmod -R 755 /data/adb/magisk
|
chmod -R 755 /data/adb/magisk
|
||||||
restorecon -R /data/adb/magisk
|
restorecon -R /data/adb/magisk
|
||||||
for module in \$(ls /data/adb/modules); do
|
for module in \$(ls /data/adb/modules); do
|
||||||
@ -558,7 +559,7 @@ on post-fs-data
|
|||||||
copy /sbin/magisk.apk /dev/$TMP_PATH/stub.apk
|
copy /sbin/magisk.apk /dev/$TMP_PATH/stub.apk
|
||||||
chmod 0644 /dev/$TMP_PATH/stub.apk
|
chmod 0644 /dev/$TMP_PATH/stub.apk
|
||||||
rm /dev/.magisk_unblock
|
rm /dev/.magisk_unblock
|
||||||
start $SERVER_NAME1
|
exec_start $SERVER_NAME1
|
||||||
start $SERVER_NAME2
|
start $SERVER_NAME2
|
||||||
wait /dev/.magisk_unblock 40
|
wait /dev/.magisk_unblock 40
|
||||||
rm /dev/.magisk_unblock
|
rm /dev/.magisk_unblock
|
||||||
|
Loading…
Reference in New Issue
Block a user