Permalink
Browse files

die if not running tp-smapi-install as root

  • Loading branch information...
1 parent 962f0f2 commit a940394876ed66c5e2d4723514573fdeeae8efc2 @teleshoes committed Oct 19, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 ubuntu-tp-smapi-install
View
@@ -2,6 +2,8 @@
use strict;
use warnings;
+die "run as root, please\n" if not `whoami` eq "root\n";
+
#installs tp-smapi from source, compiles it, and patches it to sorta work on
# w520, w510, t520, etc.
# {it aborts loading the module unless its in the whitelist}

0 comments on commit a940394

Please sign in to comment.