Commit e235b6fb authored by Tails developers's avatar Tails developers

Fix sed invocations in Start_readahead()

Quoting is good, but in this precise case, we want expansion to create
different command lines arguments!
parent 68592d3c
......@@ -24,18 +24,18 @@ Readahead ()
Start_readahead ()
{
FG_FILES="sed -n '\:$BACKGROUND_AT:q;p' '$READAHEAD_LIST'"
BG_FILES="sed -n '\:$BACKGROUND_AT:,\$p' '$READAHEAD_LIST'"
FG_FILES="sed -n -e \\:$BACKGROUND_AT:q;p $READAHEAD_LIST"
BG_FILES="sed -n -e \\:$BACKGROUND_AT:,\$p $READAHEAD_LIST"
FG_SIZE=$(
cd /
"$FG_FILES" |
$FG_FILES |
xargs du -c 2>/dev/null |
awk '$2 ~ /^total$/ { t = t + $1 } END { print t }')
(cd /
"$BG_FILES" |
$BG_FILES |
xargs stat >/dev/null 2>/dev/null || :)
(cd /
"$FG_FILES" |
$FG_FILES |
xargs cat 2>/dev/null |
pv -f -s ${FG_SIZE}k >/dev/null || :)
(cd /
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment