Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
8a8e62f4
Unverified
Commit
8a8e62f4
authored
May 09, 2019
by
Igor Pečovnik
Committed by
GitHub
May 09, 2019
Browse files
adding exception
parent
98ed6619
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config
View file @
8a8e62f4
...
...
@@ -85,6 +85,7 @@ do
# read cpu speed
POLICY
=
"policy0"
[[
$(
grep
-c
'^processor'
/proc/cpuinfo
)
-gt
4
]]
&&
POLICY
=
"policy4"
[[
!
-f
/sys/devices/system/cpu/cpufreq/policy4
]]
&&
POLICY
=
"policy0"
num
=
$(
cat
/sys/devices/system/cpu/cpufreq/
$POLICY
/scaling_min_freq 2> /dev/null
)
if
[[
-f
/etc/default/cpufrequtils
&&
!
-z
"
${
num
##*[!0-9]*
}
"
]]
;
then
FREQENCIES
=
"
\n
"
$(
LC_ALL
=
"C"
cpufreq-info |
grep
policy |
sed
"s/ current policy: //"
|
sed
's/.*/\u&/'
|
tail
-1
)
"
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment