If this script need to run as root, suggest check id is root. If not, error message and quit. Not every linux default install `sudo`, AFAIK, Fedora, Tizen are the case.