20 lines
461 B
Bash
Executable File
20 lines
461 B
Bash
Executable File
#!/bin/sh
|
|
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
|
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
|
|
|
# turn off debugging
|
|
set +x
|
|
|
|
QUIET=$1
|
|
|
|
[ -e /dev/kmsg ] && exec 5>/dev/kmsg || exec 5>/dev/null
|
|
exec 6>/init.log
|
|
|
|
while read line; do
|
|
[ "$line" == "DRACUT_LOG_END" ] && exit 0
|
|
echo "<7>dracut: $line" >&5
|
|
# if "quiet" is specified we output to /dev/console
|
|
[ -n "$QUIET" ] && echo "dracut: $line"
|
|
echo "$line" >&6
|
|
done
|