#!/bin/sh
# menu: coolest apps 
# (C) 2000 M. Andreoli, for muLinux

. /etc/utils
. /etc/dialog.lib

BACK_TITLE="MuLinux v`cat /etc/version` -- \
CANCEL to continue; ENTER to select"
INFO_DIM="-r 3 -c 50"

#set -x

# Functions:

space()
{
echo $@ | tr ' ' _
}

app_list()
{
title="INTERESTING APPLICATIONS to test: $CA please, press 'menu' to have 
this menu"
dmenu  -r 8 -c 50   -t "$(space $title)" \
"help Internal help \
$CA tips Scripting Tips and other \
$CA wizard Configuration Wizards \
$CA clone Install in the Hard-Disk \
$CA info Hardware info \
$CA mon Resource full-screen monitor \
$CA pion Simple script-based File Manager \
$CA rna Simple script-based Mailer  \
$CA mutt The popular UNIX mailer  \
$CA quark Simple script-based Browser  \
$CA lynx The popular text Browser  \
$CA setup Full Screen Setup \
$CA systest Test system functionalities \
$CA upgrade Upgrade an UMSDOS/EXT2 system \
$CA addons Load a muLinux's add-on \
$CA gagconfig The GAG bootmanager \
"
}


do_input()
{
dialog --clear
r=$(result)

clear
case $r in
-no-)	exit;;
addons)
	read -p "Enter the add-on's name: " name
	setup -f $name	
	;;
*)
	eval $r
	;;
esac
}


# Main

while [ 1 ] ; do
app_list
do_input
done

# End
