I was thinking about a QProcess that does this: Code: echo 'echo 3 > /sys/blahblahblah/region' | root and calling it through a menu action, but still I need to know that doing that works,
echo 'echo 3 > /sys/blahblahblah/region' | root
#!/bin/sh sysfile=/sys/class/i2c-adapter/i2c-2/2-0063/region if [ "$1" = "japan" ] then echo 3 > $sysfile fi if [ "$1" = "europe" ] then echo 2 > $sysfile fi exit 0