Turn the init.d scripts into autoconf config files
[zfs.git] / zfs.spec.in
index 3a57fd8..cba98af 100644 (file)
@@ -100,5 +100,5 @@ rm -rf $RPM_BUILD_ROOT
 exit 0
 
 %preun
-[ -x /sbin/chkconfig ] && /sbin/chkconfig --del zfs
+[ "$1" = 0 ] && [ -x /sbin/chkconfig ] && /sbin/chkconfig --del zfs
 exit 0