summaryrefslogtreecommitdiffstats
path: root/init.herring.rc
diff options
context:
space:
mode:
Diffstat (limited to 'init.herring.rc')
-rwxr-xr-xinit.herring.rc8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.herring.rc b/init.herring.rc
index f96b476..7e15bac 100755
--- a/init.herring.rc
+++ b/init.herring.rc
@@ -19,6 +19,14 @@ on boot
# phone
setprop ro.telephony.call_ring.multiple 0
+# allow system to modify ksm control files
+ chown root system /sys/kernel/mm/ksm/pages_to_scan
+ chmod 0664 /sys/kernel/mm/ksm/pages_to_scan
+ chown root system /sys/kernel/mm/ksm/sleep_millisecs
+ chmod 0664 /sys/kernel/mm/ksm/sleep_millisecs
+ chown root system /sys/kernel/mm/ksm/run
+ chmod 0664 /sys/kernel/mm/ksm/run
+
# change permission for uart_switch
chown radio radio /sys/class/sec/uart_switch/UART_SEL/value
chmod 660 /sys/class/sec/uart_switch/UART_SEL/value