bwc-installer-arm32/device-control/install.sh

10 lines
381 B
Bash
Raw Permalink Normal View History

2023-09-06 05:27:32 +00:00
#!/bin/bash
sudo mkdir -p /etc/sdt/device-control
sudo cp config.yaml /etc/sdt/device-control
sudo sed -i "s/acode/$1/g" /etc/sdt/device-control/config.yaml
sudo sed -i "s/typecode/$2/g" /etc/sdt/device-control/config.yaml
2023-09-06 07:36:51 +00:00
sudo cp device-control /usr/bin/
2023-09-06 05:27:32 +00:00
sudo cp device-control.service /etc/systemd/system/
sudo systemctl start device-control
sudo systemctl enable device-control