rootdir: init.rc: Start gatord running at boot
This is a the daemon that the Streamline tool talks to
from ARM Development Studio 5 (DS-5)
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 56adf5f..1394d20 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -205,6 +205,7 @@
mkdir /data/misc/adb 02750 system shell
mkdir /data/misc/bluedroid 0770 bluetooth net_bt_stack
mkdir /data/misc/bluetooth 0770 system system
+ mkdir /data/misc/gatord 0700 root root
mkdir /data/misc/keystore 0700 keystore keystore
mkdir /data/misc/keychain 0771 system system
mkdir /data/misc/radio 0770 system radio
@@ -415,6 +416,9 @@
chown system system /sys/fs/selinux/load
chown system system /sys/fs/selinux/enforce
+# Load gator module
+ insmod /system/modules/gator.ko
+
# Define TCP buffer sizes for various networks
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
@@ -615,3 +619,7 @@
socket mdnsd stream 0660 mdnsr inet
disabled
oneshot
+
+service gatord /system/bin/gatord -c /data/misc/gatord/configuration.xml
+ class main
+ user root