View Single Post
Posts: 30 | Thanked: 4 times | Joined on Dec 2009
#17
Originally Posted by jaeezzy View Post
Open up any terminal you are comfortable with and type the following:

Code:
#!/bin/sh
if [ `id -u` != 0 ]; then
sudo gainroot <<EOF
$0 $*
EOF
exit
fi
echo 118 > /sys/class/i2c-adapter/i2c-2/2-0063/power_level
It changes to root if you are just user and executes the command or else just executes the command.
will this put the command into the powerlevel.sh file so in future i will just need to run ./powerlevel.sh or will i need to do more for that to happen? also do i type that in as one string or do i press enter after every line? sorry if this is all a bit dumb but i'm a complete novice with linux