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:
21
ben-security/sbin/login
Executable file
21
ben-security/sbin/login
Executable 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
|
||||
Reference in New Issue
Block a user