What is opt_onshutdown?
opt_onshutdown is an opt package for the Fli4L
project that allows to run scripts on shutdown.
The package consists of a startup script which changes the original
'halt'/'reboot' script to call additional scripts on shutdown.
They will first call '/etc/rc.shutdown' and after that all
scripts in '/etc/rc0.d' that start with 'rc0.'.
After installing you can modify the script 'opt/etc/rc.shutdown' and add
additional commands that should be executed on every shutdown, e.g.
you could send an e-mail using OPT_SNDMAIL saying that the router is
going down or something like this.
Other OPT packages could place a script in 'opt/etc/rc0.d' that undoes
what the corresponding script in 'opt/etc/rc.d' did. I wrote this with
OPT_EXTREMAIL in mind. eXtremail is for whatever reason not killed
in time when the router is shut down so it is not possible to cleanly
unmount the partition where its data is located resulting in a checkdisk
next time the router starts.
As of version 2.x of FlI4L this package is obsolete since a similar
functionality has been integrated into FlI4L.
Development of this package was sponsored by
Note:
I am tired that some people, to whom I gave my software for free,
are bitching
about that it contains bugs, that I take too much time for providing
updates or bugfixes or that I don't answer support requests or
answer them arrogantly.
Therefore I will, effective immediately, stop any support and
further development. The packages will still be available for download
as they currently exist, but I will no longer answer any emails,
accept bug reports or even fix any bugs. There will be no
adaptations to new versions of FlI4L unless I need them for myself,
and in that latter case there will no updated documentation, if I make
the updates available at all.
to the top
Features
-
Standard solution for all OPT packages that need a
de-initialisation.
-
No changes to the rootfs necessary, so you don't need a
Linux system to install this package.
whatsnew.txt
to the top
Download
You can download opt_onshutdown from the
Fli4L homepage or from here.
-
current version
-
opt_onshutdown-0.1.2.zip
-
older versions
-
(0.1.1 was an internal version)
opt_onshutdown-0.1.0.zip
to the top
Legal status
opt_onshutdown is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
opt_onshutdown is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License (GPL).
for more details.
to the top
|