Let me explain:
Your script does what it should do. It edits /etc/eventmanager and /usr/local/pup_event/autoshutdown_daemon
In Slacko 7.0 the manipulated files are in place and edited as desired.
The commands are the same as for other Puppies.
The reason, why it does not work OOTB, is that pup_event_frontend_d
works different from (most) other Puppies.
I recall the mechanism from Slacko 5.7, where a function script was triggered every 4 seconds by a binary called pup_event_frontend_d
and executed commands periodically.
Slacko 7.0 still has similar function scripts, but they are not executed by pup_event_frontend_d
In fact, pup_event_frontend_d
is now a script that starts autoshutdown_daemon, which is a standalone script to process powertimeout of eventmanager.
pup_event_frontend_d:
Code: Select all
#!/bin/ash
if ! /usr/local/pup_event/frontend_startup $@ ; then
exit 1
fi
if ! pidof autoshutdown_daemon >/dev/null 2>&1 ; then
/usr/local/pup_event/autoshutdown_daemon &
fi
So the changes done with NicOS-PowerTimeout are made but do not take effect, because autoshutdown_daemon
does not recognize them 'on the fly'