3 # Licensed under the GPLv2+
5 # Copyright 2008-2010, Red Hat, Inc.
6 # Harald Hoyer <harald@redhat.com>
8 PATH
=/usr
/sbin
:/usr
/bin
:/sbin
:/bin
10 type getarg
>/dev
/null
2>&1 || .
/lib
/dracut-lib.sh
12 while [ $# -gt 0 ]; do
34 if [ -z "$unique" ]; then
44 [ -x "$exe" ] || exe
=$
(command -v $exe)
45 if [ -z "$exe" ] ; then
46 echo "Invalid command"
51 [ -n "$onetime" ] && echo '[ -e "$job" ] && rm -f -- "$job"'
52 [ -n "$env" ] && echo "$env"
54 } > "/tmp/$$-${job}.sh"
56 mv -f "/tmp/$$-${job}.sh" "$hookdir/initqueue${qname}/${job}.sh"
57 [ -z "$qname" ] && >> $hookdir/initqueue
/work