Hi,
El mar, 24 feb 2026 a las 8:15, Ian Macdonald via supervision escribió:
>
> My first question concerns importas. For instance, my network script
> contains lines like:
> if{ ip addr add 192.168.0.2/8 dev eth0}
> whereas most example scripts I see do:
> {importas -i ETH0_IP4 ETH0_IP}
> if{ifconfig eth0 ${ETH0_IP4 etc..}
>
> Does the use of 'importas' mean that you could edit a config file to
> change some parameters without having to recompile the datadase?
It gets the command line argument passed to ifconfig after "eth0" from
the value of an environment variable —variable ETH0_IP in this case—,
instead of hardcoding it in the script like in your first example. The
shell equivalent of that would be:
ifconfig eth $ETH0_IP etc..
In turn, one can set values of environment variables from a text file
using execline's envfile program, or from an environment directory
using s6's s6-envdir program.
G.