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 ################################################################################
9 local PAGE='/usr/share/doc/grml-docs/startpage.html'
11 . /etc/grml/script-functions
14 if [ -n "$DISPLAY" ]; then
15 if check4progs dillo ; then
17 elif check4progs xlinks2 ; then
18 xlinks2 -mode 640x480 $PAGE
19 elif check4progs firefox ; then
21 elif check4progs x-www-browser ; then
23 elif check4progs Xdialog ; then
24 Xdialog --msgbox "Sorry, no usable X browser found." 0 0
27 # do we have a real console?
28 if [[ $(tty) == /dev/tty* ]] ; then
29 # do we have framebuffer support?
30 if [ -c /dev/fb0 ] ; then
31 if check4progs links2 ; then
32 links2 -driver fb $PAGE
33 elif check4progs w3m ; then
35 elif check4progs links ; then
38 echo "Sorry, neither links2 nor w3m nor links available. Exiting.">&2
41 else # no, we don't have framebuffer
42 if check4progs w3m ; then
44 elif check4progs links ; then
46 elif check4progs links2 ; then
49 echo "Sorry, neither w3m nor links nor links2 available. Exiting.">&2
53 else # no, probably we are running inside GNU screen
54 if check4progs w3m ; then
56 elif check4progs links2 ; then
58 elif check4progs links ; then
61 echo "Sorry, neither w3m nor links2 nor links available. Exiting.">&2
67 ## END OF FILE #################################################################