#!/bin/sh
. /adm/.include
. /adm/.bin/dialog.functions
. /adm/.bin/dialog.messages

# general things
tfile=/tmp/SETUP
trap "rm -f $tfile" 0 1 2 5 15

# setupway
while :; do
export TITLE="Setup"
showdialog $menu $msg_base 2> $tfile
[ "$?" != "0" ] && return 0
handleinput "choice"
case $choice in
    "General") /adm/.setup.base ;;
    "Network") /adm/.setup.net ;;
    "Daemons") /adm/.setup.daemons ;;
    "Modules") edit /adm/.modules ;;
    "Key") edit /adm/.keys ;;
    "Exit") return 0 ;;
esac
done

/adm/.bin/conf.auto
clear
return 0
