manta: add init files for manta boards

Add init.manta.rc, init.manta.usb.rc, and ueventd.manta.rc

Change-Id: I47bcd8546470a04f7c9f1403ae86e9f89f0ad63b
diff --git a/init.manta.rc b/init.manta.rc
new file mode 100755
index 0000000..e59a52b
--- /dev/null
+++ b/init.manta.rc
@@ -0,0 +1,36 @@
+import init.smdk5250.usb.rc
+
+on early-init
+    export EXTERNAL_STORAGE /mnt/sdcard
+    mkdir /mnt/sdcard 0000 system system
+    symlink /mnt/sdcard /sdcard
+
+on post-fs-data
+    # we will remap this as /mnt/sdcard with the sdcard fuse tool
+    mkdir /data/media 0775 media_rw media_rw
+    chown media_rw media_rw /data/media
+    setprop vold.post_fs_data_done 1
+
+on boot
+    mount debugfs /sys/kernel/debug /sys/kernel/debug
+    setprop ro.radio.noril yes
+
+    # Set up kernel tracing, but disable it by default
+    chmod 0222 /sys/kernel/debug/tracing/trace_marker
+    write /sys/kernel/debug/tracing/tracing_on 0
+
+on fs
+    mount ext4 /dev/block/mmcblk0p9 /system ro wait
+    mount ext4 /dev/block/mmcblk0p12 /data wait nosuid nodev noatime nomblk_io_submit
+    mount ext4 /dev/block/mmcblk0p8 /cache wait nosuid nodev noatime nomblk_io_submit
+    setprop ro.crypto.fuse_sdcard true
+
+# Permissions for backlight
+    chmod 0666 /sys/class/backlight/pwm-backlight.0/brightness
+    chown system system /sys/class/backlight/pwm-backlight.0/brightness
+
+# create virtual SD card at /mnt/sdcard, based on the /data/media directory
+# daemon will drop to user/group system/media_rw after initializing
+# underlying files in /data/media will be created with user and group media_rw (1023)
+service sdcard /system/bin/sdcard /data/media 1023 1023
+    class late_start