summaryrefstree
path: root/bootimg/ramdisk/init.recovery.common.rc
blob: 86f335e0af3845f09db15f13d0f35808a333fac4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
###########################
# init.recovery.common.rc #
###########################

on init
    # pstore/ramoops previous console log
    mount pstore pstore /sys/fs/pstore
    chown system log /sys/fs/pstore/console-ramoops
    chmod 0440 /sys/fs/pstore/console-ramoops

on fs
    mount_all /etc/recovery.devlog.fstab
    mkdir /devlog/recovery 0775 root root

    # create /cota and /preload folder for recovery binary to mount
    mkdir /cota 0771 root cw_access
    mkdir /preload 0771 root cw_access

on boot
    # Workaround for HTC; the recovery is disabled
    # by default in HTC's bootable/recovery/etc/init.rc.
    # Enable it here for projects w/o choice_fn.
    start recovery