#!/bin/sh
# VASM
# Vector Linux System Menu
# 
# (c) Vector Linux, 2003

vdir=`dirname $0`

. $vdir/vasm-functions

menuA() {

while [ 1 ]; do
TITLE="SERVICES MENU"
TEXT="\n
This menu setup various services. A service is a\n
background program that perform a specific task,\n
including ssh, cups, also samba server.\n\n
Select the menu you wish:"

$DCMD --backtitle "$BACKTITLE" --title "$TITLE" \
--menu "$TEXT" 19 60 6 \
"SRVSET"    "enable/disable services" \
"BOOT" "set default run level for booting" \
"CUPSWEB"  "configure CUPS printing" \
"SAMBAWEB" "configure SAMBA file/printer sharing" \
"EXIT" "exit this menu" \
 2> $freply

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

  REPLY=`cat $freply`
  case "$REPLY" in
    "SRVSET")
      $vdir/vsrvset
      ;;
    "BOOT")
      $vdir/vbootset
      ;;
    "CUPSWEB")
      $vdir/vcupsweb
      ;;
    "SAMBAWEB")
      $vdir/vsambaweb
      ;;
    "EXIT")
      clean_exit 0
  esac
done
}

###########################
# MAIN

menuA
clean_exit $?

