base: add missing loginit

master
Harald Hoyer 2009-10-06 14:43:53 +02:00
parent ca270f7c17
commit 8f397a9be7
1 changed files with 13 additions and 0 deletions

13
modules.d/99base/loginit Executable file
View File

@ -0,0 +1,13 @@
#/bin/sh

QUIET=$1

[ -e /dev/kmsg ] && exec 5>/dev/kmsg || exec 5>/dev/null
exec 6>/init.log

while read line; do
echo "<7>dracut: $line" >&5
# if "quiet" is specified we output to /dev/console
[ -n "$QUIET" ] && echo "dracut: $line"
echo "$line" >&6
done