diff options
author | horchi <vdr@jwendel.de> | 2017-03-05 16:48:30 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2017-03-05 16:48:30 +0100 |
commit | bf558fd824c7ab8c794448f718b364ad403a706a (patch) | |
tree | e0ba2269c08ccc9c9bd9c336df06b1fa6fce5ec6 /scripts/fskcheck-demo.sh | |
download | vdr-plugin-pin-bf558fd824c7ab8c794448f718b364ad403a706a.tar.gz vdr-plugin-pin-bf558fd824c7ab8c794448f718b364ad403a706a.tar.bz2 |
git init0.1.16
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 |