Re: Ethernet not working anymore
- In reply to: Ruslan Zalata : "Ethernet not working anymore"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 18 Oct 2026 00:32:36 UTC
On October 17, 2026 10:12:27 PM GMT+03:00, Ruslan Zalata <rz@fabmicro.ru> wrote: >On 2026-10-17 14:44, Sulev-Madis Silber wrote: > >>> Why do we not do something like: >>> >>> if ! sh -e /etc/rc.conf ; then >>> echo "Syntax error in /etc/rc.conf, entering single user mode." 1>&2 >>> exit 1 >>> fi >>> >>> in /etc/rc ? >>> >> >> seems like more harm than good. boot might still complete otherwise >> but now you are in single user. and how to get out of that :p > >Looks like 15.1 behaves exactly like that: > >/etc/rc.conf: 13: Syntax error: Unterminated quoted string >Enter full pathname of shell or RETURN for /bin/sh: > >Won't it be better to show error message (as above) and revert to default config ? > >--- >Regards, >Ruslan > > that feels bad too. defaults might be not desired or be secure for given environment. unsure what the good idea is. and there could be multiple files. what to exclude, just erroring file? all files? etc...