[How-To] mot_boot_mode als init service

  • 6 Antworten
  • Letztes Antwortdatum
T

The Matrix

Ambitioniertes Mitglied
18
hi,
if you have many data on your mot_boot_mode,
the editing can be difficult.

so, I created a script that allows to separate
the code of the different initialization scripts.

so, you may include in a directory files
initialization and that they be read by mot_boot_mode
automatically, thus adding a new code
is to simply copy a file to this directory.

to do this have to do that:

Code:
i've tried, and working, but i'm not responsible for
damages, brickes, etc...  :)
1) mounting system for read and write

Code:
rwsystem
2) create the directory where all scripts are stored

Code:
mkdir /system/boot_scripts
chmod 755 /system/boot_scripts
3) copy all the scripts.
assuming that they have in /sdcard/boot_scripts
(Attached the Dalvik-Cache moving and overclocking)
(lock at the overlock script. it assumes you've
the overclock.ko at /system/modules/)

Code:
cp /sdcard/boot_scripts/* /system/boot_scripts
chmod 755 /system/boot_scripts/*
4) preserve the original mot_boot_mode
(Not do if they had done)

Code:
cp /system/bin/mot_boot_mode /system/bin/mot_boot_mode.bin
chmod 755 /system/bin/mot_boot_mode.bin
5) copy the new mot_boot_mode
assuming they have left in /sdcard

Code:
cp -f /sdcard/mot_boot_mode /system/bin
chmod 755 /system/bin/mot_boot_mode
and now all the files at the "/system/boot_scripts"
are executed in boot time :)

greetings and enjoy
 

Anhänge

  • scripts.zip
    932 Bytes · Aufrufe: 251
Zuletzt bearbeitet:
very nice work ;)
in the OpenRecovery LMF mod the mot_boot_mode is also splitet, to easy add new features, but i add numbers to the filenames, to load the scripts in a specific sequence, so thats a script thats needs a other script load befor is load after this script...

just take a look ;) i think we do the same thing in 2 different ways ^^
 
sorry, but i don't find it :(
please, provide me the url
thx
 
hi, downloaded, but not capable to find the related mot_boot_mode.
 
the mot_boot_mode is under /OpenRecovery/LMF/bin
 
ok, the mot_boot_mode at LMF uses busybox in order to list files sorted by name (find).
i don't like busybox. i preffers my script ;)
thank's
 

Ähnliche Themen

B
Antworten
6
Aufrufe
7.700
martin_austria
M
-FuFu-
  • -FuFu-
Antworten
0
Aufrufe
2.694
-FuFu-
-FuFu-
Koelli91
Antworten
1
Aufrufe
4.463
TheSpiritof69
TheSpiritof69
Zurück
Oben Unten