#!/bin/bash

sudo mkdir -p /etc/sdt/device-health
sudo cp config.yaml /etc/sdt/device-health/
sudo sed -i "s/acode/$1/g" /etc/sdt/device-health/config.yaml
sudo cp device-health /usr/bin/
sudo cp device-health.service /etc/systemd/system/
sudo systemctl start device-health
sudo systemctl enable device-health
