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