module: oops

This commit is contained in:
j-hc 2023-03-20 21:37:33 +03:00
parent b384768aff
commit 0af100a39e
2 changed files with 5 additions and 5 deletions

View File

@ -14,11 +14,11 @@ else
fi
set_perm_recursive $MODPATH/bin 0 0 0755 0777
nsenter -t1 -m grep __PKGNAME /proc/mounts | while read -r line; do
nsenter -t1 -m -- grep __PKGNAME /proc/mounts | while read -r line; do
ui_print "* Un-mount"
mp=${line#* }
mp=${mp%% *}
nsenter -t1 -m umount -l ${mp%%\\*}
nsenter -t1 -m -- umount -l ${mp%%\\*}
done
am force-stop __PKGNAME
@ -81,7 +81,7 @@ mkdir -p $NVBASE/rvhc
RVPATH=$NVBASE/rvhc/__PKGNAME_rv.apk
mv -f $MODPATH/base.apk $RVPATH
if ! op=$(nsenter -t1 -m mount -o bind $RVPATH $BASEPATH/base.apk 2>&1); then
if ! op=$(nsenter -t1 -m -- mount -o bind $RVPATH $BASEPATH/base.apk 2>&1); then
ui_print "ERROR: Mount failed!"
ui_print "$op"
fi

View File

@ -9,8 +9,8 @@ while
BASEPATH=$(pm path __PKGNAME)
svcl=$?
[ $svcl = 20 ]
do sleep 1; done
sleep 5
do sleep 2; done
sleep 4
err() {
[ ! -f $MODDIR/err ] && cp $MODDIR/module.prop $MODDIR/err