Index | Thread | Search

From:
Tom Smyth <tom.smyth@wirelessconnect.eu>
Subject:
NSH -OpenBSD example integration script with memory file system
To:
OpenBSD Ports <ports@openbsd.org>, nsh@lists.deschutesdigital.com
Date:
Thu, 4 Sep 2025 16:20:59 +0100

Download raw body.

Thread
  • Tom Smyth:

    NSH -OpenBSD example integration script with memory file system

Folks,

for those of you using OpenBSD and NSH in routers in un controlled physical
/ electrical environments
I created a script for new installations of OpenBSD  that you want NSH to
mange like a router



the script that does the following and is commented  quite heavily
#This script is an example setup which
# 1. patches the system
# 2. installs packages that can be useful for a router / firewall
# 3. downloads the latest master nsh from github
# 4. modifies /etc/fstab removes  swap and  /tmp and
#    sets up mfs for /var/log,  /tmp ,  /var/run and /dev
# 5. runs the nsh integration script so that the OpenBSD box is
#    fully managed using nsh.
# 6. turns off sndiod as it is not used on a router typically
# 7. sets nsh as the default shell for the user "fireman" Change to suit
your needs


it is available from github

https://github.com/yellowman/nsh/blob/master/scripts/shell/install-NSH-packages-setup-Memory-mounts-for-var-tmp-var-run-var-log-Router.sh

comments and feedback welcome



-- 
Kindest regards,
Tom Smyth.