• Жильцов Дмитрий Андреевич's avatar
    NetcfgStatic and ~/NetCfg.HC for hosting with no DHCP
    · 67a064e5
    The hosting company has no DHCP.  It writes your address in a web
    panel and expects cloud-init to read it.  TempleOS does not do
    cloud-init, the cloud is where the CIA keeps your files.
    
    NetcfgStatic("185.241.6.18","255.255.255.0","185.241.6.1","8.8.8.8")
    takes dotted strings, no more typing hex at a VNC console.  Once.HC now
    runs NetcfgAuto: ~/NetCfg.HC if you wrote one, DHCP if you did not.
    build_hdd.py --ip/--mask/--gw/--dns writes the file into the image.
    
    Tested in QEMU with 10.0.2.20 where DHCP would hand out .15: the
    Confessional answered on .20, DNS and Wget went through the static
    gateway.
    67a064e5