echo "Enter a password"
read pass1
echo "Renter password"
read pass2
if [ $pass1 = $pass2 ]
then
echo "Keyboard is locked"
trap " " 20 30 15 9 2 1 3
echo "Enter your password to unlock the screen"
read upass
while [ "$pass2" != "$upass" ]
do
echo "password is wrong !! "
echo "Renter password"
read upass
done
else
echo "Password doesn't match"
fi
read pass1
echo "Renter password"
read pass2
if [ $pass1 = $pass2 ]
then
echo "Keyboard is locked"
trap " " 20 30 15 9 2 1 3
echo "Enter your password to unlock the screen"
read upass
while [ "$pass2" != "$upass" ]
do
echo "password is wrong !! "
echo "Renter password"
read upass
done
else
echo "Password doesn't match"
fi
No comments:
Post a Comment