Browse files

mogami-common: switch to a cleaner two-stage boot method

this let's us have two separate real ramdisks which is more cleaner than having
a combined ramdisk.

on boot there will be decided which one of the ramdisks (android or recovery) gets unpacked and fired up.

Ported from:
Author: codeworkx <>
Signed-off-by: Michael Bestas <>

Change-Id: I9c0a7e484d063e3e020fdc032472f5541a9015d6
  • Loading branch information...
1 parent 86556de commit b013e0bd1b22e57146983b798dde6e4b81453bdd @codeworkx codeworkx committed with mikeNG Nov 14, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 prebuilt/init.semc.rc
@@ -2,11 +2,9 @@ import init.semc.usb.rc
on early-boot
#Run before entering charge only mode.
- exec /sbin/sh /system/etc/
+ exec /system/bin/sh /system/etc/
#offline charging
exec /system/bin/chargemon
- # Boot into recovery
- exec /sbin/bootrec
on post-fs-data
mkdir /data/misc/wifi 0770 wifi wifi
@@ -191,7 +189,7 @@ on early-boot
# Start touch firmware loader
exec /system/bin/clearpad_fwloader
-service hw_config /sbin/sh /system/etc/
+service hw_config /system/bin/sh /system/etc/
class main
user root

0 comments on commit b013e0b

Please sign in to comment.