summaryrefslogtreecommitdiff
path: root/noncore/tools/opie-sh/scripts/logviewer.sh
Unidiff
Diffstat (limited to 'noncore/tools/opie-sh/scripts/logviewer.sh') (more/less context) (show whitespace changes)
-rwxr-xr-xnoncore/tools/opie-sh/scripts/logviewer.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/tools/opie-sh/scripts/logviewer.sh b/noncore/tools/opie-sh/scripts/logviewer.sh
index e9657b4..9b5dc25 100755
--- a/noncore/tools/opie-sh/scripts/logviewer.sh
+++ b/noncore/tools/opie-sh/scripts/logviewer.sh
@@ -14,20 +14,20 @@
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details. 15# GNU General Public License for more details.
16# 16#
17# 20020526-1a - initial release... 17# 20020526-1a - initial release...
18# 18#
19 19
20OPIE_SH=/opt/QtPalmtop/bin/opie-sh 20OPIE_SH=$OPIEDIR/bin/opie-sh
21INITPATH=/etc/init.d 21INITPATH=/etc/init.d
22 22
23###################################################################### 23######################################################################
24# subroutines 24# subroutines
25 25
26about() { 26about() {
27 ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/logviewer.png>" 27 ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/logviewer.png>"
28 echo "<h3>About</h3>" 28 echo "<h3>About</h3>"
29 echo "This little App should make it possible for you to " 29 echo "This little App should make it possible for you to "
30 echo "easily have a look at some of the syslogs. " 30 echo "easily have a look at some of the syslogs. "
31 echo "<p>" 31 echo "<p>"
32 ) | $OPIE_SH -t logviewer -f & 32 ) | $OPIE_SH -t logviewer -f &
33 SCREENCLEAN=$! 33 SCREENCLEAN=$!
@@ -71,26 +71,26 @@ case $LOGMETHOD in
71 0) 71 0)
72 72
73cat /proc/kmsg >/tmp/log.$$ & 73cat /proc/kmsg >/tmp/log.$$ &
74PID=$! 74PID=$!
75sleep 2 75sleep 2
76kill $PID 76kill $PID
77( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/logviewer.png>" 77( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/logviewer.png>"
78 echo "<h3>/proc/kmsg</h3>" 78 echo "<h3>/proc/kmsg</h3>"
79 cat /tmp/log.$$ 79 cat /tmp/log.$$
80) | $OPIE_SH -t kmsg -f 80) | $OPIE_SH -t kmsg -f
81rm -f /tmp/$$ 81rm -f /tmp/$$
82cleanup ;; 82cleanup ;;
83 83
84 1) 84 1)
85 85
86cat /proc/ksyms >/tmp/log.$$ & 86cat /proc/ksyms >/tmp/log.$$ &
87PID=$! 87PID=$!
88sleep 2 88sleep 2
89kill $PID 89kill $PID
90( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/logviewer.png>" 90( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/logviewer.png>"
91 echo "<h3>/proc/ksyms</h3>" 91 echo "<h3>/proc/ksyms</h3>"
92 cat /tmp/log.$$ 92 cat /tmp/log.$$
93) | $OPIE_SH -t ksyms -f 93) | $OPIE_SH -t ksyms -f
94rm -f /tmp/$$ 94rm -f /tmp/$$
95cleanup ;; 95cleanup ;;
96 96