Startscript wird nicht angewandt?

X

XziTe

Neues Mitglied
0
Hi Leute!

Hab mit Hilfe des XDA Forums ein Howto gefunden wie man ein Startscript einfügen kann ([REF] Startup script speed tweaks - xda-developers).

Ich bin also nach folgender Anleitung gegangen:

How to create/use a startup script:

You need root and busybox for this.

This procedure is adapted from the old OCLF which used this method to create a startup script in /system/userinit.sh

Check if the file /system/userinit.sh exists. If it does, u should just edit that file as the startup script and DO NOT do the procedure below. (Bei mir existierte sie nicht, deshalb bin ich mit der Anleitung fortgefahren!)

Here's how to do it manually. Do this only if some other lagfix/patch has not already done the playlogos hack, otherwise u might overwrite the other script!

Create the startup script on your PC. Use adb to push it to /sdcard/userinit.sh

adb push userinit.sh /sdcard/userinit.sh

On your PC, create a file called playlogos1 with this content:

#!/system/bin/sh
sh /data/userinit.sh
playlogosnow

Use adb to push the playlogos1 file to /sdcard/playlogos1

adb push playlogos1 /sdcard/playlogos1

Now use adb shell, su and do this:

busybox mount -o remount,rw /system;
busybox cp /sdcard/userinit.sh /data/userinit.sh;
busybox mv /system/bin/playlogos1 /system/bin/playlogosnow;
busybox cp /sdcard/playlogos1 /system/bin/playlogos1;

chmod 755 /system/bin/playlogos1;
chmod 755 /data/userinit.sh;
und meine Userinit.sh sieht wie folgt aus:

Code:
# Tweak cfq io scheduler
for i in $(ls -1 /sys/block/stl*) $(ls -1 /sys/block/mmc*) $(ls -1 /sys/block/bml*) $(ls -1 /sys/block/tfsr*)
do echo "0" > $i/queue/rotational
echo "1" > $i/queue/iosched/low_latency
echo "1" > $i/queue/iosched/back_seek_penalty
echo "1000000000" > $i/queue/iosched/back_seek_max
echo "3" > $i/queue/iosched/slice_idle
done
# Remount all partitions with noatime
for k in $(busybox mount | grep ext4 | cut -d " " -f3)
do
sync
busybox mount -o remount,barrier=0,nobh $k
done

# Tweak kernel VM management
echo "0" > /proc/sys/vm/swappiness
echo "10" > /proc/sys/vm/dirty_ratio
echo "1000" > /proc/sys/vm/vfs_cache_pressure
echo "4096" > /proc/sys/vm/min_free_kbytes

# Tweak kernel scheduler, less aggressive settings
echo "4000000" > /proc/sys/kernel/sched_latency_ns
echo "1000000" > /proc/sys/kernel/sched_wakeup_granularity_ns
echo "800000" > /proc/sys/kernel/sched_min_granularity_ns

# Miscellaneous tweaks
setprop dalvik.vm.startheapsize 8m
Das Script soll dafür sorgen dass gewisse ext4 Optionen verändert werden (noatime,barrier=0,nobh,data=writeback)

aber wenn ich dann mit den eingesetzten Dateien Boote werden die Werte nicht angepasst, sondern bleiben wie folgt:

Code:
/dev/block/mmcblk0p2 /res/odata ext4 rw,noatime, barrier=1,data=writeback 0 0
/dev/block/stl10 /res/odbdata ext4 rw,noatime, barrier=1,data=writeback 0 0
/dev/block/stl11 /res/ocache ext4 rw,noatime, barrier=1,data=writeback 0 0
Kann mir jemand vielleicht erklären / aufzeigen wo mein Fehler liegt?

Bin natürlich für jede Hilfe dankbar :)


Grüße,
X
 

Ähnliche Themen

R
Antworten
9
Aufrufe
1.725
Islaris
Islaris
H
Antworten
0
Aufrufe
961
HollyMoly
H
S
  • Son Goku
Antworten
2
Aufrufe
1.590
Son Goku
S
Zurück
Oben Unten