pre/post-install scripts fixed for new 'prepmod'.
authorshort <>
Wed, 20 Aug 2003 14:00:17 +0000 (14:00 +0000)
committershort <>
Wed, 20 Aug 2003 14:00:17 +0000 (14:00 +0000)
lufs.spec.in

index 4c63ca0..538fec8 100644 (file)
@@ -54,15 +54,13 @@ rm -rf $RPM_BUILD_ROOT
 ln -s %{_bindir}/auto.sshfs /etc/auto.sshfs
 ln -s %{_bindir}/auto.ftpfs /etc/auto.ftpfs
 ln -s %{_bindir}/lufsd /sbin/mount.lufs
-depmod -a
-if [ "`lsmod | grep lufs`" ]; then rmmod lufs; fi
-modprobe lufs
+depmod -aq
 
 %preun
-if [ "`lsmod | grep lufs`" ]; then rmmod lufs; fi
+rmmod 2>/dev/null lufs
 
 %postun
-depmod -a
+depmod -aq
 rm -f /etc/auto.sshfs
 rm -f /etc/auto.ftpfs
 rm -f /sbin/mount.lufs