1
0
mirror of git://projects.qi-hardware.com/nanobits.git synced 2025-04-21 12:27:27 +03:00
Files
nanobits/ben-security/sbin/login
Freemor 9a04a3d23e 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.
2012-06-20 13:19:22 -03:00

22 lines
256 B
Bash
Executable File

#!/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