diff options
Diffstat (limited to 'rootdir/init.gta04.rc')
-rw-r--r-- | rootdir/init.gta04.rc | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/rootdir/init.gta04.rc b/rootdir/init.gta04.rc new file mode 100644 index 0000000..57f81f1 --- /dev/null +++ b/rootdir/init.gta04.rc @@ -0,0 +1,58 @@ +import init.gta04.usb.rc + +on init + mkdir /mnt/boot 0700 system system + + mkdir /mnt/shell/emulated 0700 shell shell + mkdir /storage/emulated 0555 root root + + export EXTERNAL_STORAGE /storage/emulated/legacy + export EMULATED_STORAGE_SOURCE /mnt/shell/emulated + export EMULATED_STORAGE_TARGET /storage/emulated + + # Legacy + symlink /storage/emulated/legacy /sdcard + symlink /storage/emulated/legacy /mnt/sdcard + symlink /storage/emulated/legacy /storage/sdcard + symlink /mnt/shell/emulated/0 /storage/emulated/legacy + + # USB disk + mkdir /storage/usbdisk 0666 system system + symlink /storage/usbdisk /mnt/usbdisk + symlink /mnt/usbdisk /usbdisk + + symlink /mnt/boot /boot + + chmod 0660 /dev/cpuctl + +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 + + # Audio + chown system audio /sys/class/gpio/gpio55/value + chmod 0660 /sys/class/gpio/gpio55/value + +on fs + mount_all /fstab.gta04 + + setprop ro.crypto.fuse_sdcard true + +on post-fs-data + mkdir /data/media 0770 media_rw media_rw + +service sdcard /system/bin/sdcard /data/media /mnt/shell/emulated 1023 1023 + class late_start |