blob: a55d5e8140fb988b666c786363d2772c58425dae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
trap "touch /tmp/rc_local_failed" EXIT
rm -f /tmp/rc_local_failed
echo 0 > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/enable
for cpu in /sys/devices/system/cpu/cpu*; do
if [ x"$(cat $cpu/online)" = x"0" ]; then
echo 1 > $cpu/online
fi
done
trap "" EXIT
exit 0
|