Drop "MS-Windows XP " prefix from all the 'id's.
[captive.git] / captive.spec.in
index 174056a..23f83c7 100644 (file)
@@ -214,6 +214,7 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 /usr/lib/lsb/install_initd @PACKAGE@ 2>/dev/null || \
                /sbin/chkconfig --add @PACKAGE@
+touch %{_var}/lock/subsys/@PACKAGE@
 
 %if ! %{static}
 %post install
@@ -224,6 +225,14 @@ rm -rf $RPM_BUILD_ROOT
 %preun
 
 %if ! %{static}
+%preun fuse
+%endif
+/usr/lib/lsb/remove_initd @PACKAGE@ 2>/dev/null || \
+               /sbin/chkconfig --del @PACKAGE@
+%{_initrddir}/@PACKAGE@ stop
+rm -f %{_var}/lock/subsys/@PACKAGE@
+
+%if ! %{static}
 %preun install
 %endif
 %{_sbindir}/captive-install-fstab --remove
@@ -234,12 +243,6 @@ rm -rf $RPM_BUILD_ROOT
 rm -rf %{_var}/lib/@PACKAGE@/s-*
 rm -rf %{_var}/lib/@PACKAGE@/tmp/*
 
-%if ! %{static}
-%postun fuse
-%endif
-/usr/lib/lsb/remove_initd @PACKAGE@ 2>/dev/null || \
-               /sbin/chkconfig --del @PACKAGE@
-
 %files
 %defattr(-,root,root)
 %doc README NEWS AUTHORS THANKS TODO