#!/bin/sh #------------------------------------------------------------------------------ # /var/install/bin/lynx-start-browser - start web browser # # Copyright (c) 2009-2019 The Eisfair Team, team(at)eisfair(dot)org # # Creation : 2009-10-29 jed # Last Update: $Id$ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #------------------------------------------------------------------------------ # include eislib etc. . /var/install/include/eislib . /var/install/include/jedlib # exec 2>/tmp/modify-user-trace-$$.log # set -x #============================================================================== # main #============================================================================== exit=0 until [ ${exit} -eq 1 ] do clrhome mecho --info "Start Lynx browser" mecho mecho " 1 - Lynx in color mode" mecho " 2 - Lynx in mono-chrome mode" mecho # read number /var/install/bin/ask "Which browser do you want to start:" 'q' 1=color 2=mono q=quit > /tmp/ask.$$ rc=$? nbr=`cat /tmp/ask.$$` rm -f /tmp/ask.$$ if [ ${rc} = 255 ] then rm -f ${tmpfile} exit 1 fi case ${nbr} in 1 ) # mono-chrome if is_numeric ${nbr} then /usr/bin/lynx-color exit=1 fi ;; 2 ) # mono-chrome if is_numeric ${nbr} then /usr/bin/lynx exit=1 fi ;; q ) # quit exit=1 ;; esac done exit 0