+%if ! %{static}
+%post fuse
+%endif
+/usr/lib/lsb/install_initd @PACKAGE@ 2>/dev/null || \
+ /sbin/chkconfig --add @PACKAGE@
+touch %{_var}/lock/subsys/@PACKAGE@
+
+%if ! %{static}
+%post install
+%endif
+%{_sbindir}/captive-install-fstab --add
+%{_sbindir}/captive-install-acquire --text --scan-disks-quick
+
+%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
+