Browse Source

#707 fix turn ups off

v1.3
Christian Rotzoll 6 years ago
parent
commit
6a3cf15628
  1. 3
      home.admin/config.scripts/blitz.ups.sh

3
home.admin/config.scripts/blitz.ups.sh

@ -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…
Cancel
Save