Scripts bash que utilizo en Android con herramientas de utilidad para mí día a día.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Termux-shell/gnz_test.sh

16 lines
437 B

check_finger_access() {
local command="$1"
shift
termux-fingerprint | grep -q "AUTH_RESULT_SUCCESS" && {
echo -e "\\n\\e[32m> ACCESS GRANTED <\\e[0m\\n"
command $command "$@"
} || {
echo -e "\\n\\e[31m> ACCESS DENIED <\\e[0m\\n"
return 1
}
}
check_finger_access
# Create aliases that require fingerprint
#alias nano='check_finger_access nano'
#alias bash='check_finger_access bash'