Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ibeacon
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def process_command(c):

# check to see if we are the superuser - returns 1 if yes, 0 if no
def check_for_sudo():
if 'SUDO_UID' in os.environ.keys():
if 'SUDO_UID' in os.environ.keys() or os.geteuid() == 0:
return 1
else:
print "Error: this script requires superuser privileges. Please re-run with `sudo.'"
Expand Down