5 # _ _ ___| |__ | | _ _| | |
6 # | | | |/___) _ \| |_/ ) | | |
7 # | |_| |___ | |_) ) _ (| | | |
8 # |____/(___/|____/|_| \_)_|\_)_)
11 # Hephaestos <hephaestos@riseup.net> - 8764 EF6F D5C1 7838 8D10 E061 CF84 9CE5 42D0 B12B
12 # <https://github.com/hephaest0s/usbkill>
14 # This program is free software: you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation, either version 3 of the License, or
17 # (at your option) any later version.
19 # This program is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU General Public License for more details.
24 # You should have received a copy of the GNU General Public License
25 # along with this program. If not, see <http://www.gnu.org/licenses/>.
30 # Check if program is run as root, else exit.
31 # Root is needed to power off the computer.
32 if not os
.geteuid() == 0:
34 sys
.exit("\n[ERROR] This program needs to run as root.\n")