Commits


add commands to control syslogd Currently supported syslog commands: syslog no syslog syslog reload syslog inet4 no syslog inet4 syslog inet6 no syslog inet6 syslog socket PATH syslog custom-ca PATH syslog system-ca syslog client-cert PATH no syslog client-cert syslog client-key PATH no syslog client-key syslog loghost no syslog loghost


add no-command support to ctl


add rcctl framework


add sl_str() helper function


fix an apparent off-by-one in step_optreq


suggest a better strategy to deal with nsh-version.mk modifications


document the release process; requested by Tom


Merge pull request #144 from sthen/patch-2 fix motd permissions in integration scripts


/etc/motd should be world-readable


remove version number from README.md we will probably always forget to update it here like I just did


/etc/motd should be world-readable


bump version number for release


/etc/motd should be world-readable


missed two makefiles for DESTDIR to PREFIX conversion


use PREFIX instead of DESTDIR for better compatibility with OpenBSD ports


Update ctl.c add Sentinal as caught and suggested by Stsp Update ctl.c add Sentinal as caught and suggested by Stsp


sync dist file list


only create nsh database in privileged mode Avoids noisy warnings on startup as a regular user when the database does not exist yet. ok chris


ensure that build timestamp is kept up-to-date on each build


make -current builds display build timestamp and compilation info in greeting Suggested by Tom


generate man command tab-completion table with a script at build-time This prevents the table from becoming out of date going forward. There were a few tags in nsh.8 which weren't yet being displayed: + { "inet6", "Search for tag inet6", CMPL0 NULL, 0 }, + { "powerdown", "Search for tag powerdown", CMPL0 NULL, 0 }, + { "saveenv", "Search for tag saveenv", CMPL0 NULL, 0 }, And an error has been corrected: - { "unsetenv", "Search for tag setenv", CMPL0 NULL, 0 }, + { "unsetenv", "Search for tag unsetenv", CMPL0 NULL, 0 },


add a dhcp restart command; requested by Tom


fix sqlite API error handling - call sqlite3_errmsg(db) before closing the db, not after - sqlite3_errmsg() can only be used when sqlite3_step() returns SQLITE_ERROR - check for errors from sqlite3_finalize() - close db handle even when an error occurred during sqlite3_open() with suggestions from chris testing + ok tom


Fix dhcpd handling with respect to rdoamins 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. earlier version ok + testing by Tom


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. ok chris