]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- second try: /var/run cleanup without find and without args len exceeded error
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 23 Apr 2008 22:27:30 +0000 (22:27 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 23 Apr 2008 22:27:30 +0000 (22:27 +0000)
svn-id: @9719

rc.d/rc.sysinit

index 455d1bd06f141b31006668c616ba4236063db871..26a006a681381dfd607007fc26fff6cfddf8c6dc 100755 (executable)
@@ -922,7 +922,7 @@ for afile in /var/lock/* /var/run/*; do
                news|sudo|mon|cvs)
                        ;;
                *)
-                       rm -rf $afile/*
+                       echo $afile/* | xargs rm -rf
                        ;;
                esac
        else
This page took 0.443821 seconds and 4 git commands to generate.