Technical data
8. Documentation for Developers
8.3.14. More Files
All files, which will be copied to the router have to be stored under opt/etc/ and opt/files/.
Be under
• opt/etc/boot.d/ and opt/etc/rc.d/: scripts, that should be executed on system start
• opt/etc/rc0.d/: scripts, that should be executed on system shutdown
• opt/etc/ppp/: scripts, that should be executed on dialin or hangup
• opt/files/: executable programs and other files according to their positions in the
file system (for example the file opt/files/bin/busybox will later be situated in the
directory /bin on the router)
Scripts in opt/etc/boot.d/, opt/etc/rc.d/ and opt/etc/rc0.d/ have the following nam-
ing scheme:
rc<number>.<name>
The number defines the order of execution, the name gives a hint on what program/package
is processed by this script.
8.4. Creating Scripts for fli4l
The following is not a general introduction to shell scripts, everyone can read about this topic
on the Internet. It is only about the flil4-specific things. Further information is available in
the various *nix/Linux help pages. The following links may be used as entry points to this
topic:
• Introduction to shell scripts:
– http://linuxcommand.org/writing_shell_scripts.php
• Help pages online:
– http://linux.die.net/
– http://heapsort.de/man2web
– http://man.he.net/
– http://www.linuxcommand.org/superman_pages.php
8.4.1. Structure
In the *nix world, it is necessary to begin a script with the name of the interpreter, hence the
first line is:
#!/bin/sh
To easily recognize later what a script does and who created it, this line should now be
followed by a short header, like so:
317










