# login root console devel-su # stop/disable old services systemctl stop bt-sleep-monitor.service systemctl mask bt-sleep-monitor.service systemctl mask bt-sleep-monitor.timer # Download new files and put them in place curl -o /usr/bin/bt-sleep-monitor https://raw.githubusercontent.com/minimec/bt-sleep-monitor/master/bt-sleep-monitor curl -o /lib/systemd/system/bt-sleep-monitor-ng.service https://raw.githubusercontent.com/minimec/bt-sleep-monitor/master/bt-sleep-monitor.service # Make script executable chmod +x /usr/bin/bt-sleep-monitor # Remove executalbe rights from the old script chmod -x /usr/bin/bt-sleep-monitor.sh # reload systemd units systemctl daemon-reload # Start service systemctl enable bt-sleep-monitor-ng.service systemctl start bt-sleep-monitor-ng.service # Exit root console exit