diff --git a/common/install.sh b/common/install.sh index f0607da..657a89d 100644 --- a/common/install.sh +++ b/common/install.sh @@ -8,17 +8,17 @@ ui_print " - $output" ui_print " - $width" ui_print " - $height" -echo "#!/system/bin/sh" > $MODDIR/"0000bootlive" -echo "#app_process=/system/bin/app_process64" >> $MODDIR/"0000bootlive" -echo "DISABLE=\"/data/adb/modules/livebootmagisk/disable\"" >> $MODDIR/"0000bootlive" -echo "if ! test -e \"\$DISABLE\"; then" >> $MODDIR/"0000bootlive" -echo "NO_ADDR_COMPAT_LAYOUT_FIXUP=1 ANDROID_ROOT=/system LD_LIBRARY_PATH=/system/lib64:/system/lib64/drm:/system/lib64/hw:/vendor/lib64:/vendor/lib64/camera:/vendor/lib64/egl:/vendor/lib64/hw:/vendor/lib64/mediacas:/vendor/lib64/mediadrm:/vendor/lib64/soundfx:/system/bin:/librootjava CLASSPATH=/data/adb/modules/livebootmagisk/liveboot /data/adb/modules/livebootmagisk/libdaemonize.so /system/bin/app_process64 /system/bin --nice-name=eu.chainfire.liveboot:root eu.chainfire.liveboot.e.d /data/adb/modules/livebootmagisk/liveboot boot dark fallbackwidth=$width fallbackheight=$height logcatlevels=WEFS logcatbuffers=C logcatformat=brief logcatnocolors dmesg=0--1 lines=80 wordwrap" >> $MODDIR/"0000bootlive" -echo "fi" >> $MODDIR/"0000bootlive" +echo "#!/system/bin/sh" > $TMPDIR/"0000bootlive" +echo "#app_process=/system/bin/app_process64" >> $TMPDIR/"0000bootlive" +echo "DISABLE=\"/data/adb/modules/livebootmagisk/disable\"" >> $TMPDIR/"0000bootlive" +echo "if ! test -e \"\$DISABLE\"; then" >> $TMPDIR/"0000bootlive" +echo "NO_ADDR_COMPAT_LAYOUT_FIXUP=1 ANDROID_ROOT=/system LD_LIBRARY_PATH=/system/lib64:/system/lib64/drm:/system/lib64/hw:/vendor/lib64:/vendor/lib64/camera:/vendor/lib64/egl:/vendor/lib64/hw:/vendor/lib64/mediacas:/vendor/lib64/mediadrm:/vendor/lib64/soundfx:/system/bin:/librootjava CLASSPATH=/data/adb/modules/livebootmagisk/liveboot /data/adb/modules/livebootmagisk/libdaemonize.so /system/bin/app_process64 /system/bin --nice-name=eu.chainfire.liveboot:root eu.chainfire.liveboot.e.d /data/adb/modules/livebootmagisk/liveboot boot dark fallbackwidth=$width fallbackheight=$height logcatlevels=WEFS logcatbuffers=C logcatformat=brief logcatnocolors dmesg=0--1 lines=80 wordwrap" >> $TMPDIR/"0000bootlive" +echo "fi" >> $TMPDIR/"0000bootlive" ui_print "- Boot script created" -install_script -p $MODDIR/0000bootlive -install_script -l $MODDIR/0000bootlive +install_script -p $TMPDIR/0000bootlive +install_script -l $TMPDIR/0000bootlive ui_print "- Boot script copied necassary places" ui_print "- Continuing to install"