#!/bin/sh
DIALOG=${DIALOG=/usr/bin/dialog}
$DIALOG --clear --title "Welcome to Ada game Console" \
--hline "ress 1-4, first letter or Enter" \
--menu "Wellcoem user Ada GameMaster Software. You Will be easyer\n\
Choose the OS you like:" -1 -1 4 \
"1 " "Set ip addres " \
"2" "Halt and Restart" \
"3" "Halt and Power off" \
"4" "Exit " 2> /tmp/menu.tmp.$$
retval=$?
choice=`cat /tmp/menu.tmp.$$`
rm -f /tmp/menu.tmp.$$
case $retval in
0)
echo $choice
sleep 20
if $choice==1
then
dialog --input "Input IP Addres(Ex.x.x.x)" -1 -1 "192.168.0.123" >/tmp/a
ip =`cat /tmp/a`
rm /tmp/a
echo $ip
sleep 20
fi