czyszczenie /var/run

Olgierd Pieczul wojrus w linux.slupsk.net
Pon, 24 Cze 2002, 09:16:33 CEST


czy nie powinno byc tak?

-- 
Olgierd Pieczul
wojrus w linux.slupsk.net
"Rozumiem 'jak', nie rozumiem 'dlaczego'"
-------------- następna część ---------
diff -urN rc-scripts.orig/rc.d/rc.sysinit rc-scripts/rc.d/rc.sysinit
--- rc-scripts.orig/rc.d/rc.sysinit	Mon Jun 24 09:08:01 2002
+++ rc-scripts/rc.d/rc.sysinit	Mon Jun 24 09:07:39 2002
@@ -596,7 +596,7 @@
 for afile in /var/lock/* /var/run/*; do
 	if [ -d "$afile" ]; then
 		bafile=$(basename $afile)
-		[ "$bafile" != "news" -a "$bafile" != "sudo" -a "$bafile" != "mon" ] && rm -f $afile/*
+		[ "$bafile" != "news" -a "$bafile" != "sudo" -a "$bafile" != "mon" ] && rm -rf $afile/*
 	else
 		rm -f $afile 2> /dev/null
 	fi


Więcej informacji o liście dyskusyjnej pld-rc-scripts