File: func_basic.sh

package info (click to toggle)
tuned 2.26.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,280 kB
  • sloc: python: 14,045; sh: 836; makefile: 216; ansic: 178
file content (12 lines) | stat: -rwxr-xr-x 231 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

systemctl restart tuned
tuned-adm recommend
PROFILES=`tuned-adm list | sed -n '/^\-/ s/^- // p'`
for p in $PROFILES
do
  tuned-adm profile "$p"
  sleep 5
  tuned-adm active
done
tuned-adm profile `tuned-adm recommend`