Index
load_reboot_script filename
Load a script to be run whenever the real-time cpu reboots.
- Arguments:
-
Script filename(arguments)
- The pathname (and optionally the arguments) of a readable
file that contains the initialization script.
- Example:
- The following example tells the control program to try to
read the file $CBI_DIR/conf/rtc.init, compile it and arrange
for the result to be executed whenever the real-time cpu
reboots. It replaces any existing reboot script. Note that
in this example the script takes no arguments. If arguments
are needed, see the documentation of the
schedule command.
load_reboot_script "$CBI_DIR/conf/rtc.init"
Note that the quotes are needed in the above example to prevent
the $ symbol being interpretted as a script operator.
- Context:
- Whenever the real-time cpu is rebooted, the hardware that it
controls is placed in a safe but useless default state. The
real-time system needs to be told many things about its
environment before it can do anything useful. This is the role
of the initialization script that the load_reboot_script loads.
This script is simply a schedule that is automatically called
upon to configure the real-time system after each reboot, so it
can contain any of the usual scheduling commands. It is
recommended that the last thing that this file should do is turn
on archiving, using the
inhibit false
command.
Martin Shepherd (3-Nov-1998)