qi: added new item to the TODO file
[dragora.git] / archive / socklog / klog / rc.main
blobdde55eb51c2d2fb1fb5725fb88db2aee8cceb8a8
1 #! /bin/sh -
3 # klog/rc.main
5 # Simple kernel log "daemon"
8 # Redirects the standard error to the standard output
9 exec 2>&1
11 TARGET="$1"
12 SVNAME="${2:-klog}"
14 start()
16 echo "*** ${SVNAME}: Starting klog ..."
17 while IFS= read -r line
19 echo "$line"
20 done < /proc/kmsg
23 reset()
25 echo "*** ${SVNAME}: Resetting"
26 exit 0
29 # Branch to target
30 eval ${TARGET} "$@"