commit ae3b5241d9476f2b9fe03e7731369255d390736b from: smytht via: GitHub date: Tue Sep 03 12:02:43 2024 UTC 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 commit - 65acc1ab450b8a0ccc3dd01cb8278dac3ac15fa0 commit + ae3b5241d9476f2b9fe03e7731369255d390736b blob - 64e6b41c41a61494260a2826b59a9441eb902c16 blob + 388262660665d1adab381b2c99b2f728e231b4b3 --- scripts/shell/extensive-nsh-openbsd-integrate.sh +++ scripts/shell/extensive-nsh-openbsd-integrate.sh @@ -272,9 +272,12 @@ else /usr/local/bin/nsh -c ../nshrc/write-config.nshrc #secure nshrc config file chmod 660 /etc/nshrc - #Remove any networking config from /etc/ that conflicts with nsh - cp /etc/hostname.* /var/nsh/backup/pre-nsh-config/ - cp /etc/mygate /var/nsh/backup/pre-nsh-config/ + #backup name config of the box + cp /etc/hosts /var/nsh/backup/pre-nsh-config/ + cp /etc/myname /var/nsh/backup/pre-nsh-config/ + #Remove any networking config from /etc/ that conflicts with nsh + mv /etc/hostname.* /var/nsh/backup/pre-nsh-config/ + mv /etc/mygate /var/nsh/backup/pre-nsh-config/ #can we import rc.conf.local to nsh config cp /etc/rc.conf.local /var/nsh/backup/pre-nsh-config/ cp nsh.rc /etc/rc.d/nsh