projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99433dd
)
initqueue: first remove the job, then execute it
author
Harald Hoyer
<harald@redhat.com>
Tue, 15 Sep 2009 09:10:36 +0000
(11:10 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Tue, 15 Sep 2009 13:00:24 +0000
(15:00 +0200)
modules.d/99base/initqueue
patch
|
blob
|
history
diff --git
a/modules.d/99base/initqueue
b/modules.d/99base/initqueue
index
288d4f9
..
50c48de
100755
(executable)
--- a/
modules.d/99base/initqueue
+++ b/
modules.d/99base/initqueue
@@
-25,9
+25,12
@@
else
job=${job##*/}
fi
-echo "$@" > "/tmp/${job}.sh"
if [ -n "$onetime" ]; then
- echo '[ -e "$job" ] && rm "$job"' >> "/tmp/${job}.sh"
+ echo '[ -e "$job" ] && rm "$job"' > "/tmp/${job}.sh"
+ echo "$@" >> "/tmp/${job}.sh"
+else
+ echo "$@" > "/tmp/${job}.sh"
fi
+
mv -f "/tmp/${job}.sh" /initqueue${settled}/
[ -z "$settled" ] && >> /initqueue/work