- # is it grml-small?
- if grep -q small /etc/grml_version ; then
- check4progs links && links $PAGE || { echo "Sorry, links not available. Exiting.">&2 ; exit 10 }
- else
- # do we have a real console?
- if [[ $(tty) == /dev/tty* ]] ; then
- # do we have framebuffer support?
- if [ -c /dev/fb0 ] ; then
- if check4progs links2 ; then
- links2 -driver fb $PAGE
- elif check4progs w3m ; then
- w3m $PAGE
- else
- echo "Sorry, neither links2 nor w3m available. Exiting.">&2
- exit 20
- fi
+ # do we have a real console?
+ if [[ $(tty) == /dev/tty* ]] ; then
+ # do we have framebuffer support?
+ if [ -c /dev/fb0 ] ; then
+ if check4progs links2 ; then
+ links2 -driver fb $PAGE
+ elif check4progs w3m ; then
+ w3m $PAGE
+ elif check4progs links ; then
+ links $PAGE