Skip to content

Commit

Permalink
only run as root, warn otherwise
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Pichelhofer authored Nov 15, 2021
1 parent b69d671 commit 4b9d54a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions software/scripts/axiom_halt.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash

if [ "$EUID" -ne 0 ]
then echo "please run as root, 'sudo axiom_halt.sh'"
exit
fi

axiom_fil_reg 11 0xFC01F010 # block writer

axiom_mimg -a -P 0
Expand Down

0 comments on commit 4b9d54a

Please sign in to comment.