Merge changes from topic "servicemanager-recovery"
* changes: on boot class_start hal Start servicemanager on init in recovery mode. Mount binderfs and add /dev/binder in recovery.
This commit is contained in:
commit
865cf90387
1 changed files with 12 additions and 0 deletions
12
etc/init.rc
12
etc/init.rc
|
@ -38,12 +38,24 @@ on init
|
|||
write /proc/sys/kernel/panic_on_oops 1
|
||||
write /proc/sys/vm/max_map_count 1000000
|
||||
|
||||
# Mount binderfs
|
||||
mkdir /dev/binderfs
|
||||
mount binder binder /dev/binderfs stats=global
|
||||
chmod 0755 /dev/binderfs
|
||||
|
||||
symlink /dev/binderfs/binder /dev/binder
|
||||
chmod 0666 /dev/binderfs/binder
|
||||
|
||||
# Start essential services
|
||||
start servicemanager
|
||||
|
||||
on boot
|
||||
ifup lo
|
||||
hostname localhost
|
||||
domainname localdomain
|
||||
|
||||
class_start default
|
||||
class_start hal
|
||||
|
||||
on firmware_mounts_complete
|
||||
rm /dev/.booting
|
||||
|
|
Loading…
Reference in a new issue