summaryrefslogtreecommitdiff
path: root/scripts/fskcheck-demo.sh
blob: 02aa17e6d6a45cacf034216375e1f52f38b6cb14 (plain)
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