diff options
author | pr.jung <pr.jung@samsung.com> | 2016-05-30 18:53:06 +0900 |
---|---|---|
committer | pr.jung <pr.jung@samsung.com> | 2016-06-20 17:14:43 +0900 |
commit | 9fed2476e6d5ee680ddeeee45e7b897bac592ce1 (patch) | |
tree | 6898e8a9c2e3937407d1cd04fcebae436b817d07 /packaging | |
parent | d83f3338473f676a92acbc4dbc6b36feec40ae65 (diff) | |
download | deviced-9fed2476e6d5ee680ddeeee45e7b897bac592ce1.tar.gz deviced-9fed2476e6d5ee680ddeeee45e7b897bac592ce1.tar.bz2 deviced-9fed2476e6d5ee680ddeeee45e7b897bac592ce1.zip |
[haptic] Seperate haptic operation to deviced-vibrator daemon from deviced
Add deviced-vibrator daemon
Change-Id: I38f53e6c2ecdf202d5da8f3ddb604c1833528842
Signed-off-by: pr.jung <pr.jung@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/deviced.spec | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packaging/deviced.spec b/packaging/deviced.spec index c44414c0..a544482e 100644 --- a/packaging/deviced.spec +++ b/packaging/deviced.spec @@ -202,6 +202,11 @@ rm -rf %{buildroot} %install_service multi-user.target.wants deviced.service %install_service sockets.target.wants deviced.socket %install_service graphical.target.wants zbooting-done.service + +%if %{?haptic_module} == on +%install_service multi-user.target.wants deviced-vibrator.service +%endif + %if %{?sdb_prestart} == on %install_service basic.target.wants sdb-prestart.service %endif @@ -217,12 +222,18 @@ users_gid=$(getent group %{TZ_SYS_USER_GROUP} | cut -f3 -d':') systemctl daemon-reload if [ "$1" == "1" ]; then systemctl restart deviced.service +%if %{?haptic_module} == on + systemctl restart deviced-vibrator.service +%endif systemctl restart zbooting-done.service fi %preun if [ "$1" == "0" ]; then systemctl stop deviced.service +%if %{?haptic_module} == on + systemctl stop deviced-vibrator.service +%endif systemctl stop zbooting-done.service fi @@ -241,6 +252,11 @@ systemctl daemon-reload %{_bindir}/deviced %{_bindir}/movi_format.sh %{_unitdir}/multi-user.target.wants/deviced.service +%if %{?haptic_module} == on +%{_unitdir}/deviced-vibrator.service +%{_unitdir}/multi-user.target.wants/deviced-vibrator.service +%{_bindir}/deviced-vibrator +%endif %{_unitdir}/sockets.target.wants/deviced.socket %{_unitdir}/graphical.target.wants/zbooting-done.service %{_unitdir}/deviced.service |