#!/bin/sh
. /adm/.include
. /adm/.bin/dialog.functions
. /adm/daemons/.msg/dhcpd

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

# setupway
while :; do
export TITLE="DHCPD Installation"
showdialog $menu $msg_base 2> $tfile
[ "$?" != "0" ] && return 0
handleinput "choice"
case $choice in
    "General") /adm/daemons/dhcpd/.setup.base ;;
    "Static") edit /adm/daemons/dhcpd/conf.fixedhosts ;;
    "Exit") return 0 ;;
esac
done

/adm/.bin/conf.auto
return 0
