This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Simple IPv4 PCRE pattern | |
IP_P="(\d{1,3}\.){3}\d{1,3}" | |
echo -n "Check privileges... " | |
if (( $(id -u) )); then | |
echo KO | |
echo "This script must be executed as superuser in order to write in /tmp and to listen to all sockets." | |
exit 1 |