#! /bin/sh #---------------------------------------------------------------------------- # /var/install/bin/show-menu - show menu # # Creation: 2001-11-04 fm # Last Update: $Id$ # # Copyright (c) 2001-2007 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' menu_file="$1" menu_package="$2" url='' menus_per_page=18 if [ "$menu_package" != "" ] then PACKAGE="$menu_package" export PACKAGE fi ### read_menu_file ############################################################################# read_menu_file() { title='' n=0 while read line do case "$line" in '#'*|'