mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-22 14:34:25 +02:00
#707 fix turn ups off
This commit is contained in:
parent
f1201cdaeb
commit
6a3cf15628
@ -111,7 +111,8 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
|
||||
if [ "${ups}" = "apcusb" ]; then
|
||||
sudo systemctl stop apcupsd
|
||||
sudo systemctl disable apcupsd
|
||||
sudo apt-get remove -f apcupsd
|
||||
sudo apt-get remove -y apcupsd
|
||||
sudo sed -i "s/^ups=.*/ups=/g" /mnt/hdd/raspiblitz.conf
|
||||
else
|
||||
echo "FAIL: unknown UPSTYPE: ${ups}"
|
||||
exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user