actually write cpufreq changes to ${mnt}/etc/rc.local instead of /tmp/a
This commit is contained in:
parent
9c321aef4d
commit
af4a1cc43f
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: rpi.conf,v 1.25 2015/02/06 15:15:01 jmcneill Exp $
|
||||
# $NetBSD: rpi.conf,v 1.26 2015/02/12 10:59:44 jmcneill Exp $
|
||||
# Raspberry Pi customization script used by mkimage
|
||||
#
|
||||
|
||||
|
@ -34,7 +34,7 @@ EOF
|
|||
# to match at boot time.
|
||||
#
|
||||
cp ${release}/etc/rc.local ${mnt}/etc/rc.local
|
||||
cat > /tmp/a << EOF
|
||||
cat >> ${mnt}/etc/rc.local << EOF
|
||||
if /sbin/sysctl -q machdep.cpu.frequency.max; then
|
||||
cpufreq_max=\$(/sbin/sysctl -n machdep.cpu.frequency.max)
|
||||
cpufreq_cur=\$(/sbin/sysctl -n machdep.cpu.frequency.current)
|
||||
|
|
Loading…
Reference in New Issue