Skip to content

Commit

Permalink
Thermal Configuration for CIV with VM Manager
Browse files Browse the repository at this point in the history
This change will copy the customised configuration
for thermal and reload the service to get
the customised changes in effect.

Tracked-On: OAM-102072
Signed-off-by: Vilas R K <vilas.r.k@intel.com>
  • Loading branch information
vilasrk authored and sysopenci committed May 6, 2022
1 parent a1ba567 commit 2c822b8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/setup_host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,14 @@ function prepare_required_scripts(){
chmod +x $CIV_WORK_DIR/scripts/batsys
}

function start_thermal_daemon() {
sudo systemctl stop thermald.service
sudo cp $CIV_WORK_DIR/scripts/intel-thermal-conf.xml /etc/thermald
sudo cp $CIV_WORK_DIR/scripts/thermald.service /lib/systemd/system
sudo systemctl daemon-reload
sudo systemctl start thermald.service
}

function install_auto_start_service(){
service_file=civ.service
touch $service_file
Expand Down Expand Up @@ -503,6 +511,10 @@ function parse_arg() {
shift
;;

-t)
start_thermal_daemon || return -1
;;

--auto-start)
install_auto_start_service "$2" || return -1
shift
Expand Down

0 comments on commit 2c822b8

Please sign in to comment.