Root/ben-security/sbin/login

Source at commit 6fd3edaca51716ac8b55007a62610e50cc078ad1 created 11 years 9 months ago.
By Freemor, Fix login so it does fall through if /etc/verify isn't present
1#!/bin/bash
2#
3# Login script to secure the nanonote
4reset
5
6if [ -f /etc/owner ]; then
7    cat /etc/owner
8fi
9
10if [ ! -f /etc/verify ]; then
11   exec $1
12fi
13
14echo -n "Password: "
15
16stty -echo
17read password
18stty echo
19
20echo ""
21
22correct="$(cat /etc/verify)"
23if [ $password = $correct ] ; then
24   exec $1
25fi
26

Archive Download this file

Branches:
master



interactive