Add support for creating a weston.ini file at runtime 58/1758/1 accepted/trunk/20120917.231254 submit/trunk/20120917.230840
authorRusty Lynch <rusty.lynch@intel.com>
Mon, 17 Sep 2012 23:02:16 +0000 (16:02 -0700)
committerRusty Lynch <rusty.lynch@intel.com>
Mon, 17 Sep 2012 23:08:20 +0000 (16:08 -0700)
packaging/intel-emgd-kmod.changes
service/intel-emgd-kmod.init

index 6edbef2..a57f723 100644 (file)
@@ -1,3 +1,6 @@
+* Mon Sep 17 2012 Rusty Lynch <rusty.lynch@intel.com> submit/trunk/20120913.064325@a710920
+- Add support for creating a weston.ini file at runtime
+
 * Wed Sep 13 2012 Quanxian Wang <quanxian.wang@intel.com> - 3104
 - bug fix caused by 'Add 2 more..' commit
 
index 9746a80..745bbff 100644 (file)
@@ -77,6 +77,25 @@ set_config() {
                configid=1
        fi
 
+       # If an appropriate weston configuration file has not been created then create it
+       if [ ! -f /root/.config/weston.ini ]; then
+           mkdir -p /root/.config
+           cat > /root/.config/weston.ini <<EOF
+[shell]
+type=desktop-shell.so
+locking=false
+
+[launcher]
+icon=/usr/share/weston/terminal.png
+path=/usr/bin/weston-terminal
+
+[output]
+name=LVDS1
+mode= 60.00 800 864 976 1088 480 486 494 517 -hsync +vsync ==
+
+EOF
+fi
+
         echo "Boardname is $boardname, configid=$configid"
         /sbin/modprobe emgd configid=$configid
 }