Enable weston display mode setting if Modello .ini is installed 16/29416/1 accepted/tizen/ivi/20141028.051034 submit/tizen/20141027.200832
authorMikko Ylinen <mikko.ylinen@intel.com>
Mon, 27 Oct 2014 13:19:18 +0000 (15:19 +0200)
committerMikko Ylinen <mikko.ylinen@intel.com>
Mon, 27 Oct 2014 13:19:18 +0000 (15:19 +0200)
Change-Id: Id0a5ff276e642ce8f9ee59c66c56d7870eecb218
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
packaging/weston-ivi.spec

index f187f7e..0b2165b 100644 (file)
@@ -26,6 +26,8 @@ compositor.
 Summary:    Tizen IVI Modello Weston configuration
 Group:      Automotive/Configuration
 Requires:   weekeyboard
+Requires(post):   sed
+Requires(postun):   sed
 Conflicts:  ico-uxf-weston-plugin, weston-ivi-config
 %description config-modello
 This package contains Tizen IVI-specific Modello configuration for the Weston
@@ -53,10 +55,12 @@ install -m 0644 weston-modello.ini %{buildroot}%{weston_config_dir}/weston-model
 
 %post config-modello
 ln -s %{weston_config_dir}/weston-modello.ini %{weston_config_dir}/weston.ini
+sed -i 's/ --current-mode//' %{_unitdir_user}/weston.service
 
 
 %postun config-modello
 rm %{weston_config_dir}/weston.ini
+sed -i 's/\(^ExecStart.*\)/\1 --current-mode/' %{_unitdir_user}/weston.service
 
 %files
 %manifest %{name}.manifest