diff options
Diffstat (limited to 'rpm/generic/zfs.spec.in')
-rw-r--r-- | rpm/generic/zfs.spec.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 8b57e6e72..77f217dbe 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -113,7 +113,14 @@ make %{?_smp_mflags} make install DESTDIR=%{?buildroot} find %{?buildroot}%{_libdir} -name '*.la' -exec rm -f {} \; -%post -p /sbin/ldconfig +%post +/sbin/ldconfig +[ -x /sbin/chkconfig ] && /sbin/chkconfig --add zfs + +%preun +if [ $1 -eq 0 ] ; then + [ -x /sbin/chkconfig ] && /sbin/chkconfig --del zfs +fi %postun -p /sbin/ldconfig |