1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
./fskcheck check case "$?" in 0) echo "check went wrong" ;; 1) echo "not protected" ;; 2) echo "protected" ./fskcheck info "Can't execute script due to pin protection" ;; *) echo "unexpected return code" ;; esac