#!/bin/bash
function name
{
echo ""
echo "1,chaxu"
echo "2,tianjia"
echo "3,xiugai"
echo "4,shanchu"
echo "5,tuichu"
read -p "xuanz:" j
case $j in
"1")
echo "dfd"
;;
"2")
echo "dfdf"
;;
"3")
echo "fdfdf"
;;
"4")
echo "dfdfdf"
;;
"5")
exit
;;
esac
}
function yanz
{
clear
echo ""
echo "-----denglu----"
read -p "yonghum :" u
read -p "mima :" p
}
i=1
while [[ $i -le 3 ]]
do
i=$i+1
yanz
if [ $u == "admin" ]&&[ $p == "admin" ]
then
clear
echo "welcome ,$u"
break
name
else
echo "cuowu,congxindeng2ci"
fi
done
function name
{
echo ""
echo "1,chaxu"
echo "2,tianjia"
echo "3,xiugai"
echo "4,shanchu"
echo "5,tuichu"
read -p "xuanz:" j
case $j in
"1")
echo "dfd"
;;
"2")
echo "dfdf"
;;
"3")
echo "fdfdf"
;;
"4")
echo "dfdfdf"
;;
"5")
exit
;;
esac
}
function yanz
{
clear
echo ""
echo "-----denglu----"
read -p "yonghum :" u
read -p "mima :" p
}
i=1
while [[ $i -le 3 ]]
do
i=$i+1
yanz
if [ $u == "admin" ]&&[ $p == "admin" ]
then
clear
echo "welcome ,$u"
break
name
else
echo "cuowu,congxindeng2ci"
fi
done