3 [ "$CMDLINE" ] ||
read CMDLINE
</proc
/cmdline
;
5 [ "$o" = "$1" ] && return 0
6 [ "${o%%=*}" = "${1%=}" ] && { echo ${o#*=}; return 0; }
13 [ "$CMDLINE" ] || read CMDLINE </proc/cmdline;
15 [ "$o" = "$1" ] && return 0
16 if [ "${o%%=*}" = "${1%=}" ]; then
21 [ -n "$found" ] && return 0
27 [ "$1" ] && [ -d "/$1" ] || return
28 for f in "/$1"/*.sh; do [ -f "$f" ] && . "$f"; done
33 echo "<1>dracut
: FATAL
: $@
";
34 echo "<1>dracut
: Refusing to
continue";
38 echo "dracut
: FATAL
: $@
";
39 echo "dracut
: Refusing to
continue";
46 echo "<4>dracut Warning
: $@
" > /dev/kmsg
47 echo "dracut Warning
: $@
" >&2
51 [ "$DRACUT_QUIET" ] || DRACUT_QUIET="x$
(getarg quiet
)"
52 echo "<6>dracut
: $@
" > /dev/kmsg
53 [ "$DRACUT_QUIET" != "xquiet
" ] && \
54 echo "dracut
: $@
" > /dev/console
64 # Count the number of times the character $ch occurs in $str
65 # Return 0 if the count matches the expected number, 1 otherwise
71 while [ "${str#*$ch}" != "${str}" ]; do
73 count=$(( $count + 1 ))
76 [ $count -eq $expected ]
84 [ -z "$file" ] && return;
85 [ -z "$str" ] && return;
87 while read dummy check restofline; do
88 [ "$check" = "$str" ] && return 0