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

vdir=$(dirname $0)

. $vdir/vasm-functions

check_root

#########################################################################
menuA()
{
while [ 0 ]; do
DIMENSION="16 60 6"
TITLE="NETWORK INTERFACE CONFIGURATION"
TEXT="\n
This configurator helps you setup network interface cards
including ethernet or cable modem. Each interface may 
have different TCP/IP settings.\n
So please, select ADD, DEL, or SET as appropriate."

$DCMD --backtitle "$BACKTITLE" --title "$TITLE" --menu "$TEXT" $DIMENSION \
 "ADD" "Add a network interface" \
 "DEL" "Delete a network interface" \
 "SET" "Change a network interface" \
 "START" "Start the network" \
 "STOP" "Stop the network" \
 "EXIT" "Exit this menu" \
 2> $freply

  status=$?
  [ $status != 0 ] && return $status

  case `cat $freply` in
      ADD) 
        $vdir/vinetadd
        ;;
      DEL)
        $vdir/vinetdel
        ;;
      SET)
        $vdir/vinetset
	;;
      START)
        $vdir/vinetstart
	;;
      STOP)
        $vdir/vinetstop
	;;
      EXIT)
        return 0
	;;
    esac
done
}

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

menuA
