From ddce304caa0d9e7b7d2858f409fc99252737c3e1 Mon Sep 17 00:00:00 2001 From: mcgi5sr2 Date: Tue, 8 Sep 2015 13:54:27 +0100 Subject: i9300: Grouper blobs update for init Conflicts: rootdir/init.target.rc Change-Id: I97dd09c7ebbfda242d8e8b3e140a2597c14c36f9 --- rootdir/init.target.rc | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc index a5b5b19..f75fdb6 100644 --- a/rootdir/init.target.rc +++ b/rootdir/init.target.rc @@ -13,6 +13,10 @@ on post-fs-data chmod 0644 /dev/icdr chown system system /dev/tzic +# GPS + mkdir /data/gps + chown gps system /data/gps + chmod 770 /data/gps # make param block device link for SysScope symlink /dev/block/mmcblk0p4 /dev/block/param @@ -25,15 +29,23 @@ on fs swapon_all /fstab.smdk4x12 on boot - # cbd service cpboot-daemon /sbin/cbd -d class main user root group radio cache inet misc audio sdcard_rw log -# GPS -service gpsd /system/bin/gpsd -c /system/etc/gps.xml +# GPS init + write /sys/class/sec/gps/GPS_PWR_EN/export 162 + write /sys/class/sec/gps/GPS_PWR_EN/value 0 + write /sys/class/sec/gps/GPS_PWR_EN/direction out + chown gps system /sys/class/sec/gps/GPS_PWR_EN/value + chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value + chown gps system /dev/ttySAC1 + chmod 0660 /dev/ttySAC1 + +# Start GPS daemon +service gps-daemon /system/bin/glgps -c /system/etc/gps.xml class main socket gps seqpacket 0660 gps system user gps -- cgit v1.1