wiki:SaliUsage/Functions/read_local_cfg

Version 2 (modified by bas, 14 years ago) (diff)

--

""This is not yet proper documented'

read_local_cfg

The functions is used by /etc/init.d/rcS. Tries to read the file local.cfg from:

  • initrd
  • hard disk if LAST_ROOT is set
  • floppy
  • ...

It can be handy if there is dhcp server: local.cfg:

HOSTNAME=www
DOMAINNAME=example.com
DEVICE=eth0
IPADDR=192.168.0.100
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
GATEWAY=192.168.0.1
GATEWAYDEV=eth0
IMAGESERVER=192.168.0.2
IMAGENAME=my_golden_client