-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgreeter.sh
68 lines (47 loc) · 1.22 KB
/
greeter.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
#greeter
#color codes
YELLOW="\033[0;93m"
WHITE="\033[0;97m"
NOCOLOR="\033[0m"
#your name, or whatever
name='Human'
clear
echo
sleep 1
echo -e "${YELLOW}Greetings $name ${NOCOLOR}\n"
sleep 1
echo -e "${YELLOW}How are you feeling today?${NOCOLOR}\n"
read -r
sleep 1
echo -e "\n${YELLOW}Excellent.${NOCOLOR}"
sleep 1
echo -e "\n${YELLOW}How about a game of chess?${NOCOLOR}\n"
read -r
sleep 1
echo -en "\n${YELLOW}Fine.${NOCOLOR}\n"
#pin/password required
sleep 1
echo -e "\n${YELLOW}PIN required before proceeding${NOCOLOR}\n"
sleep 1
read -rp "$(echo -e $YELLOW"PIN: "$NOCOLOR)"
sleep 1
echo -e "\n${YELLOW}Authenticating..${NOCOLOR}"
sleep 1
echo -e "${YELLOW}Process Complete${NOCOLOR}"
#combined read commands
#seperated by semicolons
sleep 1
echo -en ${YELLOW}
(read -p "Access " -t .5);
(read -p "Granted" -t .5);
(read -p " " -t 1)
echo -en ${YELLOW}"\n"
#clear screen and message
clear
echo -e ${YELLOW}
echo -e "##########################################################"
echo -e "## WARNING!! SECURE AREA. AUTHORIZED PERSONAL ONLY! ##"
echo -e "## All activities are being monitored and recorded. ##"
echo -e "##########################################################\n"
echo -e ${NOCOLOR}