forked from sujune/bwc-installer
10 lines
316 B
Bash
10 lines
316 B
Bash
|
#!/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/local/bin/
|
||
|
sudo cp device-health.service /etc/systemd/system/
|
||
|
sudo systemctl start device-health
|
||
|
sudo systemctl enable device-health
|