Backend: Fixes for mount on certain Nougat+ toybox implementations

This commit is contained in:
osm0sis committed 2016-11-30 21:24:07 -04:00
1 parent c9d8dd2d52
commit 0ab42ee3ec
1 file changed
+5 -5
+5 -5
View File
@@ -40,7 +40,7 @@ ui_print "$(file_getprop /tmp/anykernel/anykernel.sh kernel.string)";
ui_print " ";
ui_print "AnyKernel2 by osm0sis @ xda-developers";
ui_print " ";
mount -o ro /system;
mount -o ro -t auto /system;
mount /data;
if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.devicecheck)" == 1 ]; then
@@ -61,10 +61,10 @@ fi;
if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.initd)" == 1 ]; then
ui_print "Creating init.d...";
ui_print " ";
mount -o remount,rw /system;
mount -o remount,rw -t auto /system;
mkdir /system/etc/init.d;
set_perm_recursive 0 0 0755 0755 /system/etc/init.d;
mount -o remount,ro /system;
mount -o remount,ro -t auto /system;
fi;
ui_print "Installing kernel...";
@@ -82,10 +82,10 @@ fi;
if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.modules)" == 1 ]; then
ui_print " ";
ui_print "Pushing modules...";
mount -o remount,rw /system;
mount -o remount,rw -t auto /system;
cp -rf /tmp/anykernel/modules/* /system/lib/modules/;
set_perm_recursive 0 0 0755 0644 /system/lib/modules;
mount -o remount,ro /system;
mount -o remount,ro -t auto /system;
fi;
if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.cleanup)" == 1 ]; then