From: Imran Zaman Date: Tue, 9 Dec 2014 17:27:06 +0000 (+0200) Subject: Enable tlm when installing tlm-config-common package X-Git-Tag: accepted/tizen/common/20141210.113520^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79bf926328962305ab17b288b17073ad5d5d1df3;p=platform%2Fcore%2Fsystem%2Ftlm.git Enable tlm when installing tlm-config-common package Change-Id: I903197dd2a70d470292fcfb25f8bd9e889285924 Signed-off-by: Imran Zaman --- diff --git a/dists/rpm/tizen/packaging/tlm.spec b/dists/rpm/tizen/packaging/tlm.spec index a1aaa6e..2c7beb9 100644 --- a/dists/rpm/tizen/packaging/tlm.spec +++ b/dists/rpm/tizen/packaging/tlm.spec @@ -157,7 +157,24 @@ install -m 755 data/tizen-common/etc/session.d/* %{buildroot}%{_sysconfdir}/sess %postun -p /sbin/ldconfig -%if "%{profile}" == "ivi" +%if "%{profile}" != "ivi" + +%post config-common +/usr/bin/systemctl enable tlm +/usr/bin/systemctl daemon-reload + +%preun config-common +if [ $1 == 0 ]; then + /usr/bin/systemctl disable tlm + /usr/bin/systemctl daemon-reload +fi + +%postun config-common +if [ -h /etc/tlm.conf ]; then +rm -f /etc/tlm.conf +fi + +%else %post config-ivi-singleseat if [ ! -e /etc/tlm.conf ] || [ -h /etc/tlm.conf ]; then diff --git a/packaging/tlm.spec b/packaging/tlm.spec index a1aaa6e..2c7beb9 100644 --- a/packaging/tlm.spec +++ b/packaging/tlm.spec @@ -157,7 +157,24 @@ install -m 755 data/tizen-common/etc/session.d/* %{buildroot}%{_sysconfdir}/sess %postun -p /sbin/ldconfig -%if "%{profile}" == "ivi" +%if "%{profile}" != "ivi" + +%post config-common +/usr/bin/systemctl enable tlm +/usr/bin/systemctl daemon-reload + +%preun config-common +if [ $1 == 0 ]; then + /usr/bin/systemctl disable tlm + /usr/bin/systemctl daemon-reload +fi + +%postun config-common +if [ -h /etc/tlm.conf ]; then +rm -f /etc/tlm.conf +fi + +%else %post config-ivi-singleseat if [ ! -e /etc/tlm.conf ] || [ -h /etc/tlm.conf ]; then