diff --git a/utils/airtime-import/airtime-import.py b/utils/airtime-import/airtime-import.py index 6340da445..ee1fb6cdf 100644 --- a/utils/airtime-import/airtime-import.py +++ b/utils/airtime-import/airtime-import.py @@ -18,7 +18,7 @@ logging.disable(50) # add ch to logger logger.addHandler(ch) -if (posix_geteuid() != 0): +if (os.geteuid() != 0): print 'Must be a root user.' sys.exit()