nut-actions.plg aktualisiert

This commit is contained in:
2025-02-25 15:44:27 +01:00
parent 456c4748ee
commit 11dd44bb56

View File

@@ -59,7 +59,7 @@ if [ ! -f /boot/config/plugins/nut-dw.plg ]; then
fi
if [ ! -f &plugin;/settings.cfg ]; then
echo "DELAY_SECONDS=30" > &plugin;/settings.cfg
echo "DELAY_SECONDS=0" > &plugin;/settings.cfg
fi
grep -q '/usr/bin/nut-actions on_line' /boot/config/plugins/nut-dw/ups/xnut-notify-hooks.sh || sed -i -e '/^ONLINE /,/}/{/}/s/^/ if [ -f \/usr\/bin\/nut-actions ]; then\n \/usr\/bin\/nut-actions on_line\n fi\n/}' /boot/config/plugins/nut-dw/ups/xnut-notify-hooks.sh