yellowman / nsh

OpenBSD networking configuration shell
http://www.nmedia.net/nsh/
Other
174 stars 27 forks source link

make reboot and show diff-config work if nshrc does not exist #133

Closed stspdotname closed 1 year ago

stspdotname commented 1 year ago

WIth recent changes the reboot command can no longer be used if /etc/nshrc is missing. The command now fails with a "No such file or directory" in this situation. Fix this and also make it possible to run 'show diff-config' when /etc/nshrc is missing since the reboot command will warn and ask for config changes to be reviewed and saved.