@@ -40,8 +40,10 @@ ui_print "$(file_getprop /tmp/anykernel/anykernel.sh kernel.string)";
40
40
ui_print " " ;
41
41
ui_print " AnyKernel2 by osm0sis @ xda-developers" ;
42
42
ui_print " " ;
43
+ umount /system;
43
44
mount -o ro -t auto /system;
44
45
mount /data;
46
+ test -f /system/system/build.prop && root=/system;
45
47
46
48
if [ " $( file_getprop /tmp/anykernel/anykernel.sh do.devicecheck) " == 1 ]; then
47
49
ui_print " Checking device..." ;
@@ -62,8 +64,8 @@ if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.initd)" == 1 ]; then
62
64
ui_print " Creating init.d..." ;
63
65
ui_print " " ;
64
66
mount -o rw,remount -t auto /system;
65
- mkdir /system/etc/init.d;
66
- set_perm_recursive 0 0 0755 0755 /system/etc/init.d;
67
+ mkdir $root /system/etc/init.d;
68
+ set_perm_recursive 0 0 0755 0755 $root /system/etc/init.d;
67
69
mount -o ro,remount -t auto /system;
68
70
fi ;
69
71
@@ -83,8 +85,8 @@ if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.modules)" == 1 ]; then
83
85
ui_print " " ;
84
86
ui_print " Pushing modules..." ;
85
87
mount -o rw,remount -t auto /system;
86
- cp -rf /tmp/anykernel/modules/* /system/lib/modules/;
87
- set_perm_recursive 0 0 0755 0644 /system/lib/modules;
88
+ cp -rf /tmp/anykernel/modules/* $root /system/lib/modules/;
89
+ set_perm_recursive 0 0 0755 0644 $root /system/lib/modules;
88
90
mount -o ro,remount -t auto /system;
89
91
fi ;
90
92
0 commit comments