Remove /opt/etc/hal/.hal-backend-compatibility for data migration of OS
Upgarde to remove the invalid result of hal backend compatibility.
/opt/etc/hal/.hal-backend-compatibility should be created on first
booting by comparing the supported HAL interface version in HAL manifest
with hal-backend version.
Change-Id: Id6980ced56f7f8c2fee0f7b178e6534ad168b1cb
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
--- /dev/null
+#!/bin/sh
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+if [ -e "/opt/etc/hal/.hal-backend-compatibility" ]; then
+ rm -f /opt/etc/hal/.hal-backend-compatibility
+fi
Source6: haltest.target
Source7: reboot-haltest
Source8: reboot-normal
+Source9: 500.%{name}.sh
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
install -D -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/haltest.target
install -D -m 0755 %{SOURCE7} %{buildroot}%{_bindir}/reboot-haltest
install -D -m 0755 %{SOURCE8} %{buildroot}%{_bindir}/reboot-normal
+install -D -m 0755 %{SOURCE9} %{buildroot}%{_datadir}/upgrade/scripts/500.%{name}.sh
%clean
rm -rf %{buildroot}
%{_sysconfdir}/ld.so.conf.d/libhal-api.conf
%{_systemdgeneratordir}/systemd-hal-firmware-generator
%{_systemdgeneratordir}/systemd-hal-compatibility-checker-generator
+%{_datadir}/upgrade/scripts/500.%{name}.sh
%files -n %{devel_name}
%defattr(-,root,root,-)