mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-22 22:44:20 +02:00
#707 set shutdownscript and disable wall message
This commit is contained in:
parent
b1838d420f
commit
92ddaced16
@ -40,6 +40,9 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
sudo sed -i "s/^UPSTYPE.*/UPSTYPE usb/g" /etc/apcupsd/apcupsd.conf
|
||||
sudo sed -i "s/^DEVICE.*/DEVICE/g" /etc/apcupsd/apcupsd.conf
|
||||
sudo sed -i "s/^MINUTES.*/MINUTES 10/g" /etc/apcupsd/apcupsd.conf
|
||||
sudo sed -i "s/^ISCONFIGURED=.*/ISCONFIGURED=yes/g" /etc/default/apcupsd
|
||||
sudo sed -i "s/^SHUTDOWN=.*/SHUTDOWN=\/home\/admin\/XXshutdown.sh/g" /etc/apcupsd/apccontrol
|
||||
sudo sed -i "s/^WALL=.*/#WALL=wall/g" /etc/apcupsd/apccontrol
|
||||
sudo systemctl start apcupsd
|
||||
|
||||
# add default 'ups' raspiblitz.conf if needed
|
||||
|
Loading…
x
Reference in New Issue
Block a user