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.
#!/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