checkroot.sh 104 B

12345678
  1. #!/bin/sh
  2. echo -e "checking root"
  3. if [ "$EUID" -ne 0 ]; then
  4. echo -e "Please run as root"
  5. exit
  6. fi