From 5be1f622addbe10e60144b420d5255f40535577a Mon Sep 17 00:00:00 2001 From: "NameLess, the Jedi" Date: Fri, 31 Dec 2010 10:00:10 +0100 Subject: Allow 'system' user to modify cpufreq control files This is needed by new CPU Settings in CMParts Change-Id: I0ec4e0b1705670034a433df549b2895985c476af --- rootdir/init.rc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'rootdir') 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 -- cgit v1.2.3