diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-05-18 20:48:45 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-05-18 20:48:45 +0200 |
commit | f48321c3772c6028b4129880ef6ca13da428e7ea (patch) | |
tree | 65409adb134442b428efd7c0e387b339692df065 /init.gta04.rc | |
parent | 5ee6fcc0f439c1ce485e93ed5496f4963d3195e3 (diff) | |
download | device_goldelico_gta04-f48321c3772c6028b4129880ef6ca13da428e7ea.zip device_goldelico_gta04-f48321c3772c6028b4129880ef6ca13da428e7ea.tar.gz device_goldelico_gta04-f48321c3772c6028b4129880ef6ca13da428e7ea.tar.bz2 |
init.gta04.rc: Set correct owner and rights for headset gpio
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'init.gta04.rc')
-rw-r--r-- | init.gta04.rc | 55 |
1 files changed, 30 insertions, 25 deletions
diff --git a/init.gta04.rc b/init.gta04.rc index 47c382d..3245366 100644 --- a/init.gta04.rc +++ b/init.gta04.rc @@ -1,38 +1,43 @@ import init.gta04.usb.rc on early-init - export EXTERNAL_STORAGE /mnt/sdcard - mkdir /mnt/sdcard 0000 system system + export EXTERNAL_STORAGE /mnt/sdcard + mkdir /mnt/sdcard 0000 system system + symlink /mnt/sdcard /sdcard - # for backwards compatibility - symlink /mnt/sdcard /sdcard + mkdir /mnt/boot 0000 system system on boot - # Modem GPIO - chown radio radio /sys/class/gpio/gpio186/value - chmod 660 /sys/class/gpio/gpio186/value - - # Lights - chown system system /sys/class/backlight/pwm-backlight/brightness - chown system system /sys/class/backlight/pwm-backlight/max_brightness - chown system system /sys/class/leds/gta04:red:power/brightness - chown system system /sys/class/leds/gta04:red:power/max_brightness - chown system system /sys/class/leds/gta04:green:power/brightness - chown system system /sys/class/leds/gta04:green:power/max_brightness - chown system system /sys/class/leds/gta04:red:aux/brightness - chown system system /sys/class/leds/gta04:red:aux/max_brightness - chown system system /sys/class/leds/gta04:green:aux/brightness - chown system system /sys/class/leds/gta04:green:aux/max_brightness + # Modem GPIO + chown radio radio /sys/class/gpio/gpio186/value + chmod 660 /sys/class/gpio/gpio186/value + + # Lights + chown system system /sys/class/backlight/pwm-backlight/brightness + chown system system /sys/class/backlight/pwm-backlight/max_brightness + chown system system /sys/class/leds/gta04:red:power/brightness + chown system system /sys/class/leds/gta04:red:power/max_brightness + chown system system /sys/class/leds/gta04:green:power/brightness + chown system system /sys/class/leds/gta04:green:power/max_brightness + chown system system /sys/class/leds/gta04:red:aux/brightness + chown system system /sys/class/leds/gta04:red:aux/max_brightness + chown system system /sys/class/leds/gta04:green:aux/brightness + chown system system /sys/class/leds/gta04:green:aux/max_brightness + + # Audio + chown system audio /sys/class/gpio/gpio55/value + chmod 0660 /sys/class/gpio/gpio55/value on fs - mount ext4 /dev/block/mmcblk0p2 /system wait - mount ext4 /dev/block/mmcblk0p2 /system ro wait remount - mount ext4 /dev/block/mmcblk0p3 /cache nosuid wait - mount ext4 /dev/block/mmcblk0p4 /data nosuid wait + mount ext4 /dev/block/mmcblk0p2 /system wait + mount ext4 /dev/block/mmcblk0p2 /system ro wait remount + mount ext4 /dev/block/mmcblk0p3 /cache nosuid wait + mount ext4 /dev/block/mmcblk0p4 /data nosuid wait + mount vfat /dev/block/mmcblk0p1 /mnt/boot/ ro wait on post-fs-data - mkdir /data/media 0775 media_rw media_rw - chown media_rw media_rw /data/media + mkdir /data/media 0775 media_rw media_rw + chown media_rw media_rw /data/media service sdcard /system/bin/sdcard /data/media 1023 1023 class late_start |