From: Arkadiusz Miƛkiewicz Date: Tue, 3 Feb 2004 21:55:21 +0000 (+0000) Subject: Set bafile earlier. X-Git-Tag: 0.4.0.9~3 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=e727b40f1057bf886566149fd2ee27cdc3307f21;p=projects%2Frc-scripts.git Set bafile earlier. svn-id: @3271 --- diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 8b4564e5..ca596266 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -683,8 +683,8 @@ rm -f /fastboot /fsckoptions /forcefsck /halt /poweroff # Clean up /var # I'd use find, but /usr may not be mounted. for afile in /var/lock/* /var/run/*; do + bafile=$(basename $afile) if [ -d "$afile" ]; then - bafile=$(basename $afile) [ "$bafile" != "news" -a "$bafile" != "sudo" -a "$bafile" != "mon" ] && rm -rf $afile/* else [ "$bafile" != "hwprofile" ] && rm -f $afile 2> /dev/null