summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorZiyan <jaraidaniel@gmail.com>2015-03-27 01:09:17 +0100
committerZiyan <jaraidaniel@gmail.com>2015-04-11 20:31:36 +0200
commit6bf652bae38bf8b0ad5d9037fb95b9850d84daaa (patch)
treea162dbc5972d5dbee206f97af920edc773a125b5 /rootdir
parentf1f5652cf550dcd0ba6986fe31a02c34677b7e77 (diff)
downloaddevice_samsung_tuna-6bf652bae38bf8b0ad5d9037fb95b9850d84daaa.zip
device_samsung_tuna-6bf652bae38bf8b0ad5d9037fb95b9850d84daaa.tar.gz
device_samsung_tuna-6bf652bae38bf8b0ad5d9037fb95b9850d84daaa.tar.bz2
Fix formatting of init.tuna.rc
Conflicts: rootdir/init.tuna.rc Change-Id: I27575da0e3b0884ba75b0beef59cdb08e2900f03
Diffstat (limited to 'rootdir')
-rwxr-xr-xrootdir/init.tuna.rc254
1 files changed, 127 insertions, 127 deletions
diff --git a/rootdir/init.tuna.rc b/rootdir/init.tuna.rc
index 8ec4f30..bf0f1b7 100755
--- a/rootdir/init.tuna.rc
+++ b/rootdir/init.tuna.rc
@@ -28,21 +28,21 @@ on init
on post-fs-data
mkdir /data/media 0770 media_rw media_rw
- mkdir /data/smc 0770 drmrpc drmrpc
- chown drmrpc drmrpc /data/smc/counter.bin
- chown drmrpc drmrpc /data/smc/storage.bin
- chown drmrpc drmrpc /data/smc/system.bin
+ mkdir /data/smc 0770 drmrpc drmrpc
+ chown drmrpc drmrpc /data/smc/counter.bin
+ chown drmrpc drmrpc /data/smc/storage.bin
+ chown drmrpc drmrpc /data/smc/system.bin
- # camera calibration
- mkdir /data/misc/camera 0770 media media
- mkdir /data/misc/camera/R5_MVEN003_LD2_ND0_IR0_SH0_FL1_SVEN003_DCCID1044 0770 media media
+ # camera calibration
+ mkdir /data/misc/camera 0770 media media
+ mkdir /data/misc/camera/R5_MVEN003_LD2_ND0_IR0_SH0_FL1_SVEN003_DCCID1044 0770 media media
- mkdir /data/radio 0775 radio radio
- mkdir /data/radio/log 0775 radio radio
+ mkdir /data/radio 0775 radio radio
+ mkdir /data/radio/log 0775 radio radio
- setprop vold.post_fs_data_done 1
+ setprop vold.post_fs_data_done 1
-# LTE
+ # LTE
chown radio system /sys/devices/tuna_otg/usb_sel
chown radio system /sys/devices/tuna_otg/uart_sel
chown radio system /sys/bus/i2c/drivers/fsa9480/4-0025/switch
@@ -51,69 +51,69 @@ on post-fs-data
chmod 0660 /sys/devices/tuna_otg/usb_sel
on boot
- mount debugfs /sys/kernel/debug /sys/kernel/debug
- chmod 0666 /dev/pvrsrvkm
+ mount debugfs /sys/kernel/debug /sys/kernel/debug
+ chmod 0666 /dev/pvrsrvkm
-# autosuspend root hubs immediatly after attached devices
- write /sys/bus/usb/devices/usb1/power/autosuspend_delay_ms 0
- write /sys/bus/usb/devices/usb2/power/autosuspend_delay_ms 0
+ # autosuspend root hubs immediatly after attached devices
+ write /sys/bus/usb/devices/usb1/power/autosuspend_delay_ms 0
+ write /sys/bus/usb/devices/usb2/power/autosuspend_delay_ms 0
-# Prevents permission denied error for telephony
+ # Prevents permission denied error for telephony
chmod 0644 /proc/cmdline
on fs
- mkdir /factory 0775 radio radio
- mount_all /fstab.tuna
- restorecon /dev/block/platform/omap/omap_hsmmc.0/by-name/radio
- restorecon_recursive /factory
- mount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/efs /factory ro remount
- setprop ro.crypto.fuse_sdcard true
-
-# change permissions for mtd device
- chmod 0660 /dev/mtd/mtd0
- chown media media /dev/mtd/mtd0
-
-# change permissions for i2c-2 device
- chmod 0660 /dev/i2c-2
- chown media media /dev/i2c-2
-
-# pvr module
+ mkdir /factory 0775 radio radio
+ mount_all /fstab.tuna
+ restorecon /dev/block/platform/omap/omap_hsmmc.0/by-name/radio
+ restorecon_recursive /factory
+ mount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/efs /factory ro remount
+ setprop ro.crypto.fuse_sdcard true
+
+ # change permissions for mtd device
+ chmod 0660 /dev/mtd/mtd0
+ chown media media /dev/mtd/mtd0
+
+ # change permissions for i2c-2 device
+ chmod 0660 /dev/i2c-2
+ chown media media /dev/i2c-2
+
+ # pvr module
insmod /system/lib/modules/pvrsrvkm_sgx540_120.ko
start pvrsrvinit
-# change permissions for Tiler driver
+ # change permissions for Tiler driver
chmod 0777 /dev/tiler
chmod 0777 /dev/dmm
-# change permissions for ION driver
+ # change permissions for ION driver
chmod 0777 /dev/ion
-# add symlink for HDCP key
- symlink /factory/hdcp.keys /system/vendor/firmware/hdcp.keys
+ # add symlink for HDCP key
+ symlink /factory/hdcp.keys /system/vendor/firmware/hdcp.keys
-# nfc
+ # nfc
setprop ro.nfc.port "COM4"
chmod 0600 /dev/ttyO3
chown nfc nfc /dev/ttyO3
chmod 0600 /sys/devices/platform/nfc-power/nfc_power
chown nfc nfc /sys/devices/platform/nfc-power/nfc_power
-# permissions for bluetooth.
- setprop ro.bt.bdaddr_path "/factory/bluetooth/bt_addr"
- chown bluetooth bluetooth ro.bt.bdaddr_path
- chown bluetooth bluetooth /dev/ttyO1
- chmod 0600 /dev/ttyO1
- chmod 0660 /sys/class/rfkill/rfkill0/state
- chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
- chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
+ # permissions for bluetooth.
+ setprop ro.bt.bdaddr_path "/factory/bluetooth/bt_addr"
+ chown bluetooth bluetooth ro.bt.bdaddr_path
+ chown bluetooth bluetooth /dev/ttyO1
+ chmod 0600 /dev/ttyO1
+ chmod 0660 /sys/class/rfkill/rfkill0/state
+ chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
+ chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
-# backlight
- chown system system /sys/class/backlight/s6e8aa0/brightness
+ # backlight
+ chown system system /sys/class/backlight/s6e8aa0/brightness
-# leds
- chown system system /dev/an30259a_leds
+ # leds
+ chown system system /dev/an30259a_leds
-# for GPS
+ # for GPS
chown root system /sys/class/sec/gps/GPS_PWR_EN/value
chmod 0660 /sys/class/sec/gps/GPS_PWR_EN/value
chown root system /sys/class/sec/gps/GPS_nRST/value
@@ -121,9 +121,9 @@ on fs
chown system system /proc/mcspi1_cs3_ctrl
chmod 0600 /proc/mcspi1_cs3_ctrl
-# ril control auto-suspend
- chmod 0660 /sys/bus/usb/devices/usb1/power/control
- chown radio radio /sys/bus/usb/devices/usb1/power/control
+ # ril control auto-suspend
+ chmod 0660 /sys/bus/usb/devices/usb1/power/control
+ chown radio radio /sys/bus/usb/devices/usb1/power/control
# CMHW permissions
# Adaptive backlight
@@ -132,17 +132,17 @@ on fs
chmod 0666 /sys/devices/platform/omapdss/manager0/gamma
on property:persist.sys.tuna.off_mode=*
- write /d/pm_debug/enable_off_mode ${persist.sys.tuna.off_mode}
+ write /d/pm_debug/enable_off_mode ${persist.sys.tuna.off_mode}
on property:ril.modem.lte.powercontrol=*
- write /sys/bus/usb/devices/1-1/power/control ${ril.modem.lte.powercontrol}
+ write /sys/bus/usb/devices/1-1/power/control ${ril.modem.lte.powercontrol}
service dumpdcc /system/bin/dumpdcc
- user media
- group media
- class late_start
- seclabel u:r:fRom:s0
- oneshot
+ user media
+ group media
+ class late_start
+ seclabel u:r:fRom:s0
+ oneshot
service pvrsrvinit /system/bin/pvrsrvinit
class core
@@ -153,8 +153,8 @@ service pvrsrvinit /system/bin/pvrsrvinit
# create filesystems if necessary
service setup_fs /system/bin/setup_fs \
- /dev/block/platform/omap/omap_hsmmc.0/by-name/cache \
- /dev/block/platform/omap/omap_hsmmc.0/by-name/userdata
+ /dev/block/platform/omap/omap_hsmmc.0/by-name/cache \
+ /dev/block/platform/omap/omap_hsmmc.0/by-name/userdata
class core
user root
group root
@@ -183,104 +183,104 @@ service fuse_usbdisk /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/usbdisk /s
disabled
service p2p_supplicant /system/bin/wpa_supplicant \
- -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
- -I/system/etc/wifi/wpa_supplicant_overlay.conf -N \
- -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
- -I/system/etc/wifi/wpa_supplicant_overlay.conf \
- -O/data/misc/wifi/sockets -puse_p2p_group_interface=1 \
- -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
- # we will start as root and wpa_supplicant will switch to user wifi
- # after setting up the capabilities required for WEXT
- # user wifi
- # group wifi inet keystore
- class main
- socket wpa_wlan0 dgram 660 wifi wifi
- disabled
- oneshot
+ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
+ -I/system/etc/wifi/wpa_supplicant_overlay.conf -N \
+ -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
+ -I/system/etc/wifi/wpa_supplicant_overlay.conf \
+ -O/data/misc/wifi/sockets -puse_p2p_group_interface=1 \
+ -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
+ # we will start as root and wpa_supplicant will switch to user wifi
+ # after setting up the capabilities required for WEXT
+ # user wifi
+ # group wifi inet keystore
+ class main
+ socket wpa_wlan0 dgram 660 wifi wifi
+ disabled
+ oneshot
service wpa_supplicant /system/bin/wpa_supplicant \
- -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
- -I/system/etc/wifi/wpa_supplicant_overlay.conf \
- -O/data/misc/wifi/sockets \
- -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
- # we will start as root and wpa_supplicant will switch to user wifi
- # after setting up the capabilities required for WEXT
- # user wifi
- # group wifi inet keystore
- class main
- socket wpa_wlan0 dgram 660 wifi wifi
- disabled
- oneshot
+ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
+ -I/system/etc/wifi/wpa_supplicant_overlay.conf \
+ -O/data/misc/wifi/sockets \
+ -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
+ # we will start as root and wpa_supplicant will switch to user wifi
+ # after setting up the capabilities required for WEXT
+ # user wifi
+ # group wifi inet keystore
+ class main
+ socket wpa_wlan0 dgram 660 wifi wifi
+ disabled
+ oneshot
service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
- class main
- disabled
- oneshot
+ class main
+ disabled
+ oneshot
service dhcpcd_p2p /system/bin/dhcpcd -aABKL
- class main
- disabled
- oneshot
+ class main
+ disabled
+ oneshot
service dhcpcd_bt-pan /system/bin/dhcpcd -ABKL
- class main
- disabled
- oneshot
+ class main
+ disabled
+ oneshot
service dhcpcd_eth0 /system/bin/dhcpcd -ABDKL
- class main
- disabled
- oneshot
+ class main
+ disabled
+ oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n
- class main
- disabled
- oneshot
+ class main
+ disabled
+ oneshot
service iprenew_p2p /system/bin/dhcpcd -n
- class main
- disabled
- oneshot
+ class main
+ disabled
+ oneshot
service iprenew_bt-pan /system/bin/dhcpcd -n
- class main
- disabled
- oneshot
+ class main
+ disabled
+ oneshot
service iprenew_eth0 /system/bin/dhcpcd -n
- class main
- disabled
- oneshot
+ class main
+ disabled
+ oneshot
# bugreport is triggered by holding down volume down, volume up and power
service bugreport /system/bin/dumpstate -d -p -B \
-o /data/data/com.android.shell/files/bugreports/bugreport
- class main
- disabled
- oneshot
- keycodes 114 115 116
+ class main
+ disabled
+ oneshot
+ keycodes 114 115 116
service battery_charger /sbin/healthd -c
- class charger
- critical
- seclabel u:r:healthd:s0
+ class charger
+ critical
+ seclabel u:r:healthd:s0
# Allow writing to the kernel trace log. Enabling tracing still requires root.
on property:ro.debuggable=1
- chmod 0222 /sys/kernel/debug/tracing/trace_marker
+ chmod 0222 /sys/kernel/debug/tracing/trace_marker
# CyanogenMod Performance Profiles
# Powersave
on property:sys.perf.profile=0
- write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 700000
- write /sys/devices/platform/omap/pvrsrvkm.0/sgxfreq/frequency_limit 384000000
+ write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 700000
+ write /sys/devices/platform/omap/pvrsrvkm.0/sgxfreq/frequency_limit 384000000
# Balanced
on property:sys.perf.profile=1
- write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 920000
- write /sys/devices/platform/omap/pvrsrvkm.0/sgxfreq/frequency_limit 384000000
+ write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 920000
+ write /sys/devices/platform/omap/pvrsrvkm.0/sgxfreq/frequency_limit 384000000
# Performance
on property:sys.perf.profile=2
- write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 920000
- write /sys/devices/platform/omap/pvrsrvkm.0/sgxfreq/frequency_limit 512000000
+ write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 920000
+ write /sys/devices/platform/omap/pvrsrvkm.0/sgxfreq/frequency_limit 512000000