Commit Briefs
Fix dhcpd handling with respect to rdoamins (dhcprdomains)
Run dhcpd in the correct rdomain when rdomain is != 0 and start dhcpd with a list of interfaces on its command line. All interfaces must be in the same rdomain; dhcpd will then set its own rdomain accordingly. Use a separate DHCP lease database per rdomain just in case a given MAC and IP tuple appears in multiple rdomains.
allow T_HANDLER to process any number of arguments between 0 and 6
This way we can write handlers that accept all arguments listed in their ctl table as actual arguments, rather than passing unused parameters which contain ununitialized garbage. The benefit is better clarity about the expected values of arguments passed on by handler functions. Adjust motd and crontab handlers accordingly which use T_HANDLER. All instances of call_editor() now use T_HANDLER_FILL1.
introduce struct ctl2 with backwards compat wrappers
The new struct avoids the necessity to cast configuration file test handler arguments from char ** to a char *, such that the char ** pointer can be stored in ctl->args[1]. Such shadowing of variable types results in code that is hard to follow. We can convert daemons one-by-one to fully replace struct ctl eventually. As an example, convert dhcpd handling to struct ctl2 already. Ok tom, chris
Merge pull request #143 from smytht/master
Improve Readme by converting to markdown and adding a quick installation guide for nsh
Update README.md use email addresses proper
Update README.md use email addresses proper
backout previous dhcp rdomain commits
I forgot that these diffs only work correctly with the &fillargs patch which has been backed out. This needs more work before it can come back...
Update README.md fix typo
fix typo screen not scree
Update README.md fix number formats
Update README.md fix number formats
run dhcpd in the correct rdomain when rdomain is != 0
test + ok Tom
Update README.md fix typos in and after section 7
Update README.md fix typos in and after section 7
Update and rename nsh-openbsd-integration.sh to extensive-nsh-openbsd-integration.sh
Add in extensive warnings to indicate this is a more invasive installation script, (for users who mainly want to manage systems with nsh) (moving config files for import not copying to avoid confusion between which config files are the source of truth, added in a write configuration command at end of nsh configuration to capture the config before reboot.
Update README.md to include the detail of requirements
Update README.md to include the detail of requirements for nsh to control the system
back out "fix bogus pointer being passed to fill_tmpfile() for T_HANDLER_FILL1"
This backs out commit 1bb61b1da84f5690f3125d4f6595b833632622b4: The commit broke configuration file syntax checks. It triggeed errors from exec since we were trying to exec a list of garbage arguments. I misunderstood what the fillargs[1] pointer represents. Even though it is a char * the value stored in case of FILLARGS1 is in fact a char *[].
Create rc.local-nsh-openbsd-integration.sh
rc.local based integration script rc.local-nsh-openbsd-integration.sh
Update rc.local-nsh-openbsd-integrate.sh
Update script to copy config files not move them so that the user can return to using OpenBSD and standard config more easily.
Merge pull request #1 from smytht/smytht-README.md
Update and rename README to README.md
Update and rename README to README.md
convert README to markdown and add quick start install / update insructions and a brief how to to complete nsh installation so that it controls the setup of the OpenBSD system.
Update README fixking typos etc.
Update README fixking typos etc.
Update rc.local-nsh-openbsd-integrate.sh
Update to syntax to fix asking of question
move nsh rc.d script to shell directory
and remame it to nsh.rc to indicate it is intended to be used by rcctl in /etc/rc.d/
Create rc.local-nsh-openbsd-integrate.sh
add a less intrusive script to use nsh for configuring an OpenBSD system.