kexec-tools/kdump_dracut_modules/99kdumpbase/initqueue

13 lines
223 B
Plaintext
Raw Normal View History

#!/bin/sh
if [ "$1" = "--onetime" ]; then
onetime="yes"
shift
fi
echo "$@" > /tmp/$$.sh
if [ -n "$onetime" ]; then
echo '[ -e "$job" ] && rm "$job"' >> /tmp/$$.sh
fi
mv /tmp/$$.sh /initqueue/
>> /initqueue/work