repo.or.cz
/
dragora.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
qi: added new item to the TODO file
[dragora.git]
/
archive
/
socklog
/
klog
/
rc.main
blob
dde55eb51c2d2fb1fb5725fb88db2aee8cceb8a8
1
#! /bin/sh -
2
#
3
# klog/rc.main
4
#
5
# Simple kernel log "daemon"
6
#
7
8
# Redirects the standard error to the standard output
9
exec
2
>&
1
10
11
TARGET
=
"
$1
"
12
SVNAME
=
"
${2:-klog}
"
13
14
start
()
15
{
16
echo
"***
${SVNAME}
: Starting klog ..."
17
while
IFS
=
read -r
line
18
do
19
echo
"
$line
"
20
done
< /
proc
/
kmsg
21
}
22
23
reset
()
24
{
25
echo
"***
${SVNAME}
: Resetting"
26
exit
0
27
}
28
29
# Branch to target
30
eval
${TARGET}
"$@"
31