6/9/2023 0 Comments Kiwix default password![]() No relation between first-level members.Offspot.yaml is composed of a single object with predefined candidate members. help_text ) # Directly raise a `ValueError` exception is_valid_ipv4 ( "10.0.0.a" ). Mv runtime-config-main/src/offspot_runtine_condig /some/place/įor name in containers fromfile ap ethernet hostname timezoneĭo ln -s /some/place/ $name.py /usr/local/bin/offspot-config- $name done Library usage pip3 install offspot-runtime-configįrom offspot_runtime.checks import is_valid_ipv4 # CheckResponse can be treated as a boolean if is_valid_ipv4 ( "10.0.0.1" ): … # CheckResponse exposes `.passed` (`bool`) and `.help_text` (`str`) check = is_valid_ipv4 ( "10.0.0.a" ) if not check. ⚠️ Warning: only tested on offspot base-image (raspiOS bullseye) apt install hostapd dnsmasq dhcpcd5 python3-yaml python3-pipĪlternatively, if you don't want to rely on python packages, you can use scripts (almost) directly curl -L | tar xf. If you start it on boot, disable them ( systemctl disable hostapd dnsmasq) it starts hostapd, dnsmasq and iptables-restore automatically.It returns 0 on success, 1 on general failures and 2 on misconfiguration (invalid parameter).this script is meant to be run automaticaly on boot (via systemd) before rvice.-debug will show you what exact parameters were passed to individual scripts so you can manually launch them should there be an issue.Usage offspot-config-fromfile -debug /boot/offspot.yaml ![]() it's a configuration tool that must be ran as root.While -fromfile reads a YAML file, it mostly runs individual, feature-specific scripts that takes parameters on the command-line.In an already configured system the file should be an empty YAML document ( -). It only lists the changes requested (whatever the status of those settings) at next boot. Its primary goal is to allow one to change some key offspot configuration upon next boot by changing one file (stored in FAT32 /boot –so writable anywhere), following a descriptive format. reads a YAML config file and changes the offspot configuration accordingly. ![]() Launched via offspot-config-fromfile, it: A collection of scripts for use within offspot/base-image.
0 Comments
Leave a Reply. |