* Tue Mar 18 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-9.sme
- update config for Nut 2.8.2 [SME: 12657] TODO review master/slave mode TODO convert master/slave to primary/secondary TODO convert to new config data + migrate TODO event and action
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
# then traditionnal services2adjust
|
||||
|
||||
# enumerate / configure drivers
|
||||
/usr/libexec/nut-driver-enumerator.sh
|
||||
/usr/libexec/nut-driver-enumerator.sh 2>/dev/null
|
||||
|
||||
event=$1
|
||||
|
||||
@@ -17,6 +17,7 @@ if [[ $i == "bootstrap-console-save" ]] ; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# if disabled stop them
|
||||
if [[ $(/sbin/e-smith/config getprop nut status || echo "disabled") == "disabled" ]] ; then
|
||||
# if disabled stop them
|
||||
for OUTPUT in $(/sbin/e-smith/config keys|grep nut-driver)
|
||||
@@ -26,6 +27,17 @@ if [[ $(/sbin/e-smith/config getprop nut status || echo "disabled") == "disabled
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# if netclient stop them
|
||||
if [[ $(/sbin/e-smith/config getprop nut Mode || echo "netclient") == "netclient" ]] ; then
|
||||
# if disabled stop them
|
||||
for OUTPUT in $(/sbin/e-smith/config keys|grep nut-driver)
|
||||
do
|
||||
/usr/bin/systemctl stop $OUTPUT 2>/dev/null
|
||||
done
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
# if we are there we want to restart / start them
|
||||
for OUTPUT in $(/sbin/e-smith/config keys|grep nut-driver)
|
||||
do
|
||||
|
Reference in New Issue
Block a user