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

26 lines
301 B
Bash
Executable File

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