#!/bin/sh
# @vasm : USER
# @level: user
# @description: setup password and users  
# 
# (c) Eko M. Budi, 2003
# (c) VLocity Linux, 2003
#
# Released under GNU GPL

vdir=$(dirname $0)

. $vdir/vasm-functions

check_root

#########################################################################
menuA()
{
while [ 0 ]; do
TITLE="NETWORK MENU"
TEXT="\n
This is the menu to setup networking system. For a basic,\n
single ethernet card system, NETCONF is the easiest way.\n
Other menu allow you to set up more advanced networking."
DIMENSION="20 70 7"

$DCMD --backtitle "$BACKTITLE" --title "$TITLE" --menu "$TEXT" $DIMENSION \
"NETCONF" "quick configuration for a standard computer" \
"NAME" "set hostname and DNS server" \
"INET" "set one or more network interfaces" \
"WIRELESS" "set wireless networking" \
"MODEM" "set modem & PPP password" \
"FIREWALL" "set network protection and internet sharing" \
"DONE" "finish doing this" \
2> $freply || return $?

#"DNS"  "manage hosts to IP address mappings" \
#"DHCP" "manage dynamic IP address allocations"  \

   case `cat $freply` in
      NETCONF)
        $vdir/vnetconf
	;;
      NAME)
        $vdir/vnameset
        ;;
      INET)
        $vdir/vinet
        ;;
      WIRELESS)
        $vdir/vwireless
	;;
      MODEM)
        $vdir/vmodemset
        ;;
      FIREWALL)
        $vdir/vfirewall
	;;
      DNS)
        $vdir/vdns
	;;
      DHCP)
        $vdir/vdhcp
	;;
      *)
        return 0
	;;
    esac
  done
}

####################################################################################
# MAIN PROGRAM

menuA
clean_exit $?
