#!/bin/csh -f

source install.conf

if ($sing == true) $sounds/kill_song

set reset = true

menu:
clear

if($reset == true) then
	if ($sing == true) ($sounds/pick_song &)
else
	set reset = true
endif


echo ""
echo ""
echo "                          Installation Menu"
echo $bar
echo ""
echo ""
echo "                      1.   Andrew File System"
echo "                      2.   Network utilities"

echo ""
echo "                      h    Help on menu choices"
endif
echo "                      r    Return to previous menu"
echo ""
echo ""
get_response "Menu choice: " "1" "2" "help" "return"

switch ($status)
 case 1: 
	if($sing2 == true) $sounds/kill_song
	$afs/deinstall.afs
	breaksw
 case 2: 
	if($sing2 == true) $sounds/kill_song
	$net/deinstall.net
	breaksw
 case 3:
	goto help
	breaksw
 case 4:
	exit 0
	breaksw
endsw


help:

clear
echo ""
echo ""
echo "                          About the Menus"
echo $bar
echo ""
echo "Choose the packages you wish to remove. Have a nice day."
echo ""
echo ""
get_response "Press <return> to continue..." "<return>"

goto menu
