Root/
Source at commit 6fd3edaca51716ac8b55007a62610e50cc078ad1 created 11 years 9 months ago. By Freemor, Fix login so it does fall through if /etc/verify isn't present | |
---|---|
1 | #!/bin/bash |
2 | # |
3 | # Login script to secure the nanonote |
4 | reset |
5 | |
6 | if [ -f /etc/owner ]; then |
7 | cat /etc/owner |
8 | fi |
9 | |
10 | if [ ! -f /etc/verify ]; then |
11 | exec $1 |
12 | fi |
13 | |
14 | echo -n "Password: " |
15 | |
16 | stty -echo |
17 | read password |
18 | stty echo |
19 | |
20 | echo "" |
21 | |
22 | correct="$(cat /etc/verify)" |
23 | if [ $password = $correct ] ; then |
24 | exec $1 |
25 | fi |
26 |
Branches:
master