Root/
| 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
