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 firefox ; then
19 elif check4progs x-www-browser ; then
21 elif check4progs Xdialog ; then
22 Xdialog --msgbox "Sorry, no usable X browser found." 0 0
25 # do we have a real console?
26 if [[ $(tty) == /dev/tty* ]] ; then
27 # do we have framebuffer support?
28 if [ -c /dev/fb0 ] ; then
29 if check4progs links2 ; then
30 links2 -driver fb $PAGE
31 elif check4progs w3m ; then
33 elif check4progs links ; then
36 echo "Sorry, neither links2 nor w3m nor links available. Exiting.">&2
39 else # no, we don't have framebuffer
40 if check4progs w3m ; then
42 elif check4progs links ; then
44 elif check4progs links2 ; then
47 echo "Sorry, neither w3m nor links nor links2 available. Exiting.">&2
51 else # no, probably we are running inside GNU screen
52 if check4progs w3m ; then
54 elif check4progs links2 ; then
56 elif check4progs links ; then
59 echo "Sorry, neither w3m nor links2 nor links available. Exiting.">&2
65 ## END OF FILE #################################################################