1
0
mirror of git://projects.qi-hardware.com/nanobits.git synced 2025-04-21 12:27:27 +03:00

Push initial Security works

login - a simple login script
verify - text file to hold password
owner  - text file to hold contact info to be displayed

Update README with appropriate info.
This commit is contained in:
Freemor
2012-06-20 13:19:22 -03:00
parent 3d7a0d2195
commit 9a04a3d23e
4 changed files with 43 additions and 0 deletions

21
ben-security/sbin/login Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
#
# Login script to secure the nanonote
reset
if [ -f /etc/owner ]; then
cat /etc/owner
fi
echo -n "Password: "
stty -echo
read password
stty echo
echo ""
correct="$(cat /etc/verify)"
if [ $password = $correct ] ; then
exec $1
fi