#! /bin/sh #---------------------------------------------------------------------------- # /var/install/bin/show-menu - show menu # # Creation: 2001-11-04 fm # Last Update: $Id$ # # Copyright (c) 2001-2012 the eisfair team, team(at)eisfair(dot)org # # 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 . /var/install/include/eislib default_run_path='/var/install/bin' default_menu_path='/var/install/menu' default_config_path='/etc/config.d' default_doc_path='/usr/share/doc' default_init_path='/etc/init.d' xmlsplit='/usr/local/bin/xmlsplit' menu_file="$1" menu_package="$2" url='' if [ -n "$menu_package" ] then PACKAGE="$menu_package" export PACKAGE fi # # get command # # Example: # $1 /var/install/bin/show-doc.cui -f /var/log/messages # returns /var/install/bin/show-doc.cui # get_cmd() { set - ${1} echo ${1} } ### read_menu_file ############################################################################# read_menu_file() { MENU_TITLE='' MENU_SUBTITLE='' MENU_QUESTION='Select' MENU_COLS='60*' MENU_ROWS=0 MENU_FLAGS='--spread --indent 12 --showexit' while read line do case "$line" in '#'*|'