]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Set bafile earlier.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 3 Feb 2004 21:55:21 +0000 (21:55 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 3 Feb 2004 21:55:21 +0000 (21:55 +0000)
svn-id: @3271

rc.d/rc.sysinit

index 8b4564e51af6cee9d839386bd9a1e78b13f6d61c..ca596266cd61c7752b75ba79f2473d88ca6f32ec 100755 (executable)
@@ -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
This page took 0.792075 seconds and 4 git commands to generate.