Update soundtest
[grml-scripts.git] / usr_bin / grml-info
1 #!/bin/zsh
2 # Filename:      grml-info
3 # Purpose:       start browser with documentation for grml
4 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2.
7 # Latest change: Fre Jul 07 22:42:18 CEST 2006 [mika]
8 ################################################################################
9
10 local PAGE='/usr/share/doc/grml-docs/startpage.html'
11
12 # do we have X?
13 if ! [ -n "$DISPLAY" ]; then
14  # is it grml-small?
15  if grep -q small /etc/grml_version ; then
16     links $PAGE
17  else
18   # do we have a real console?
19   if [[ $(tty) == /dev/tty* ]] ; then
20     # do we have framebuffer support?
21     if [ -c /dev/fb0 ] ; then
22       links2 -driver fb $PAGE
23     else
24       # no, we don't have framebuffer
25       w3m $PAGE
26     fi
27   # no, probably we are running inside GNU screen
28   else
29     w3m $PAGE
30   fi
31  fi
32 # oh, we have X!
33 else
34   dillo $PAGE
35 fi
36
37 ## END OF FILE #################################################################