Technical data

8. Documentation for Developers
copy file if PCMCIA_PCIC='i82365', set uid/gid to root and the rights to 644 (rw-r--r--)
pcmcia_pcic i82365 files/lib/modules/${KERNEL_VERSION}/pcmcia/i82365.ko
copy file if one of the NET_DRV_% variables matches the second field, set uid/gid to root
and the rights to 644 (rw-r--r--)
net_drv_% 3c503 3c503.ko
copy file if the variable POWERMANAGEMENT does not contain the value “none”:
powermanagement !none etc/rc.d/rc100.pm mode=555 flags=sh
copy file if any of the OPT variables OPT_MYOPTA or OPT_MYOPTB contains the value “yes”:
myopta,myoptb yes files/usr/local/bin/myopt-common.sh mode=555 flags=sh
This example is only an abbreviation for:
myopta yes files/usr/local/bin/myopt-common.sh mode=555 flags=sh
myoptb yes files/usr/local/bin/myopt-common.sh mode=555 flags=sh
And the latter is a shorthand notation for:
opt_myopta yes files/usr/local/bin/myopt-common.sh mode=555 flags=sh
opt_myoptb yes files/usr/local/bin/myopt-common.sh mode=555 flags=sh
copy file opt/files/usr/bin/beep.sh to the RootFS archive, but rename it to bin/beep
before:
base yes rootfs:files/usr/bin/beep.sh mode=555 flags=sh name=bin/beep
The files will be copied only if the above conditions are met and OPT_PACKAGE='yes' of
the corresponding package is set. What OPT variable is referenced is decribed in the file
check/<PACKAGE>.txt.
If a variable is referenced in a package that is not defined by the package itself, it may happen
that the corresponding package is not installed. This would result in an error message from
mkfli4l, as it expects that all of the variables referenced by opt/<PACKAGE>.txt are defined.
To handle this situation correctly the “weak” declaration has been introduced. It has the
following format:
weak <Variable> -
By this the variable it is defined (if not already existing) and its value is set to “undefined”.
Please note that the prefix OPT_" must be provided (if existing) because else a variable without
this prefix will be created.
An example taken from opt/rrdtool.txt:
weak opt_openvpn -
[...]
openvpn yes files/usr/lib/collectd/openvpn.so
Without the weak definition mkfli4l would display an error message when using the package
“rrdtool” while the “openvpn” package is not activated. By using the weak definition no error
message is raised even in the case that the “openvpn” package does not exist.
290