From 219e576cc39946ba717ac7c8db5af912a44d3aad Mon Sep 17 00:00:00 2001 From: ynakamura Date: Wed, 28 Dec 2016 14:57:00 +0900 Subject: Add switch on/off script for cluster demo v2.0: (Tadao Tanikawa) Completely rebuilt. The mapviewer and mapvier-demo are installed into porter's image only because they need AGL CES2017 Demo mock-up. To enable mapviewer-demo, execute switch_on_mapviewer-demo.sh at /usr/AGL/mapviewer-demo then reboot porter. CAUTION: After enabling mapviewer-demo, without cluster mock up which connected directly to porter board, weston on the porter board would always crash immediately after booting. If you fall into that situation, disable mapviewer-demo following instructions below. To disable mapviewer-demo, execute switch_off_mapviewer-demo.sh at /usr/AGL/mapviewer-demo then reboot porter. v1.0: (Yusuke Nakamura) This addes script to enable/disable CES2017 cluster demo to /usr/AGL/cluster-demo. Once switch_on_cluster-demo.sh is executed, this enables a service for cluster demo and sets configurations for the dmeo. Change-Id: Ie10f35ff4168095c3b3c6572579a2c4799c04578 Signed-off-by: ynakamura Signed-off-by: Tadao Tanikawa --- .../mapviewer-demo/weston-mapviewer-demo.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 recipes-demo-hmi/navigation/mapviewer-demo/weston-mapviewer-demo.service (limited to 'recipes-demo-hmi/navigation/mapviewer-demo/weston-mapviewer-demo.service') diff --git a/recipes-demo-hmi/navigation/mapviewer-demo/weston-mapviewer-demo.service b/recipes-demo-hmi/navigation/mapviewer-demo/weston-mapviewer-demo.service new file mode 100644 index 000000000..65275cc03 --- /dev/null +++ b/recipes-demo-hmi/navigation/mapviewer-demo/weston-mapviewer-demo.service @@ -0,0 +1,16 @@ +[Unit] +Description=Weston reference Wayland compositor +Conflicts=getty@tty1.service +After=dbus.service rc.pvr.service + +[Service] +ExecStartPre=/sbin/ifconfig eth0 192.168.20.93 +ExecStartPre=/bin/rm -rf /home/root/.cache/gstreamer-1.0 +#ExecStartPre=/bin/sleep 10 +ExecStart=/usr/bin/weston-launch -u root -- --idle-time=4294967 --gst-record --config=weston-mapviewer-demo.ini +ExecStop=/usr/bin/killall -s KILL weston +Type=simple + +[Install] +WantedBy=multi-user.target +Alias=weston.service -- cgit 1.2.3-korg