()
| 428 | sys.exit("ERROR:\n\nCouldn't find any of the necessary scaling governors.\n") |
| 429 | |
| 430 | def root_check(): |
| 431 | if not os.geteuid() == 0: |
| 432 | print("\n" + "-" * 33 + " Root check " + "-" * 34 + "\n") |
| 433 | print("ERROR:\n\nMust be run root for this functionality to work, i.e: \nsudo " + app_name) |
| 434 | footer() |
| 435 | exit(1) |
| 436 | |
| 437 | def countdown(s): |
| 438 | # Fix for wrong stats output and "TERM environment variable not set" |