diff options
author | NameLess, the Jedi <yoddah@gmail.com> | 2010-12-31 10:00:10 +0100 |
---|---|---|
committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2012-07-10 22:59:44 +0100 |
commit | 5be1f622addbe10e60144b420d5255f40535577a (patch) | |
tree | 1fe2b8483e5f658a51151431f2d7d7316c86960c /rootdir | |
parent | 49acefbe37b4d6e3a884c7697c4c010dc499be11 (diff) | |
download | system_core-5be1f622addbe10e60144b420d5255f40535577a.tar.gz system_core-5be1f622addbe10e60144b420d5255f40535577a.tar.bz2 system_core-5be1f622addbe10e60144b420d5255f40535577a.zip |
Allow 'system' user to modify cpufreq control files
This is needed by new CPU Settings in CMParts
Change-Id: I0ec4e0b1705670034a433df549b2895985c476af
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.rc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index 496d4cc8..d081f96b 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -306,6 +306,14 @@ on boot chown system system /sys/kernel/ipv4/tcp_rmem_max chown root radio /proc/cmdline + # allow system to modify cpufreq control files + chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor + chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor + chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq + chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq + chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq + chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq + # Define TCP buffer sizes for various networks # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax, setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208 |