Commit Briefs

321e4e2c02 Stefan Sperling

safely install configs by using rename(2) (install-conf)

Instead of opening config files in append mode, writing a single line and closing them again, over and over, use a temporary file which collects file contents and then rename this file on top of the actual config file stored in /var/run. This prevents a bug where config content was repeatedly appended to files in /var/run. Renaming files on top is also safer and more transactional because other programs reading these files won't see half-way written content.


1d023088c2 Stefan Sperling

don't skip empty lines in rules which store file contents


9bdde78d5a Stefan Sperling

make the rtable command actually update the rtable of the nsh process

The assumption that nsh always runs in rdomain 0 is invalid. Stop assuming that cli_rtable is set to zero by default, and switch the nsh process rdomain accordingly as needed. Tests + ok Tom


2fae624233 Stefan Sperling

on startup, initialize cli_rtable to the current rdomain

Fixes behaviour when nsh starts in a non-default rdomain. We used to assume to start out in rdomain 0, which is not necessarily the case. ok Tom


2a0ad55e61 Stefan Sperling

use cli_rtable to construct the bgp socket path, not getrtable(2)

ok Tom


b3ef1874c3 Stefan Sperling

remove fallback code for OpenBSD 6.8 and earlier


8b2d313fcf Stefan Sperling

remove references to dhclient(8); obsolete since OpenBSD 7.2

Should fix github issue #163 as a side effect


ce8077eccc GitHub

Merge pull request #161 from smytht/logger

add logger command for entering messages into the ..


309124c7f0 GitHub

Update extensive-nsh-openbsd-integrate.sh move motd on import

move /etc/motd on import so the sym link works then


4282096ce0 GitHub

add logger command for entering messages into the ..

system log or /var/log/messages


69aa42d63b Stefan Sperling

honour DESTDIR in 'make install' target


d439592012 GitHub

Update README.md remove chmod commands and use sh ...

.. with shell script instead based on feedback from STSP


f59823bb56 GitHub

Version Bump for release 1.2.2 (tags/v1.2.2)



741b54eca9 GitHub

Update README.md ahead of release


1bcd050e14 GitHub

minor corrections to nsh.8 before release

mandoc -Tlint



21b1dfdbf5 Stefan Sperling

add a 'make static' target which builds statically linked binaries

The goal is to make it easier to build the -static flavour of nsh in the OpenBSD ports tree.


44b5f33be4 GitHub

su is an alias of enable for convenience

su should not be displayed in help / context help in nsh su will work but not be suggested to user during tab completion



ae3b5241d9 GitHub

Update extensive-nsh-openbsd-integrate.sh

remove hostname.if and mygate on Integration script run per comment above those lines and add commands to backup the hostname and hosts file configuration


65acc1ab45 Stefan Sperling

fix adding blackhole and reject routes; a gateway is required

Fixes an invalid route message error during nsh -i at boot time: % cmd: route (line 49) margv [route 224.0.0.0/4 127.0.0.1 iface nompath reject] % RTM_ADD: Add Route: len 128, table 0, pid: 0, seq 1, errno 0, flags:<UP,REJECT,STATIC> % locks: inits: % sockaddrs: <DST,NETMASK> 224.0.0.0 240.0.0.0 % ip_route: rtmsg: Invalid argument test + ok Tom


1ecf319919 Stefan Sperling

create save.sh during "make install" if it is missing


45a20fd042 Stefan Sperling

fix whitespace