repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git]
/
readahead-fedora
/
kill-readahead
blob
9c941d1acfa4e376a757373c4adc8081c613c994
1
#!/bin/bash
2
3
EXITCOUNT
=
1000
4
COUNT
=
0
5
6
while
[[
$EXITCOUNT
-ge
$COUNT
]] ;
do
7
if
[
-f
/
tmp
/
.kill_readahead-collector
];
then
8
if
[
"$(pidof readahead-collector)"
]
9
then
10
killall readahead-collector
11
fi
12
13
rm
-fr
/
tmp
/
.kill_readahead-collector
14
exit
0
15
fi
16
17
sleep
0.4
18
let
COUNT
+=
1
19
done