diff options
Diffstat (limited to 'scripts/fskcheck-demo.sh')
-rwxr-xr-x | scripts/fskcheck-demo.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/fskcheck-demo.sh b/scripts/fskcheck-demo.sh new file mode 100755 index 0000000..02aa17e --- /dev/null +++ b/scripts/fskcheck-demo.sh @@ -0,0 +1,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 |