Thread View: muc.lists.freebsd.current
8 messages
8 total messages
Started by The Backroomer
Fri, 16 Oct 2026 20:21
Ethernet not working anymore
Author: The Backroomer
Date: Fri, 16 Oct 2026 20:21
Date: Fri, 16 Oct 2026 20:21
23 lines
6165 bytes
6165 bytes
--000000000000fb08c7065dfae77b Content-Type: text/plain; charset="UTF-8" I edited the rc.conf to be dhcp but it still gives me the same error from ifconfig in bsdconfig networking ifconfig eval: 1 Syntax error: end of file unexpected (expecting word) How to fix? It just occured after I uninstalled kde plasma. re0 --000000000000fb08c7065dfae77b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto">I edited the rc.conf to be dhcp but it still gives me the= same error from ifconfig in bsdconfig networking ifconfig eval: 1 Syntax e= rror: end of file unexpected (expecting word) How to fix? It just occured a= fter I uninstalled kde plasma. re0</div> --000000000000fb08c7065dfae77b-- -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Ethernet not working anymore
Author: Patrick M. Hausen
Date: Fri, 16 Oct 2026 20:34
Date: Fri, 16 Oct 2026 20:34
19 lines
3501 bytes
3501 bytes
HI! > Am 16.10.2026 um 22:21 schrieb The Backroomer <thebackroomer@gmail.com>: > > I edited the rc.conf to be dhcp but it still gives me the same error from ifconfig in bsdconfig networking ifconfig eval: 1 Syntax error: end of file unexpected (expecting word) How to fix? It just occured after I uninstalled kde plasma. re0 Post your complete rc.conf, please. Kind regards, Patrick -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Ethernet not working anymore
Author: A FreeBSD User
Date: Sat, 17 Oct 2026 06:34
Date: Sat, 17 Oct 2026 06:34
53 lines
5255 bytes
5255 bytes
--Sig_/NRld3JQe1r+cyhgwef5B_.h Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Tage des Herren Fri, 16 Oct 2026 21:21:04 +0100 The Backroomer <thebackroomer@gmail.com> schrieb: > I edited the rc.conf to be dhcp but it still gives me the same error from > ifconfig in bsdconfig networking ifconfig eval: 1 Syntax error: end of fi= le > unexpected (expecting word) How to fix? It just occured after I uninstall= ed > kde plasma. re0 Check what you have edited, then have a special look at the syntax and espe= cially constructions like=20 tag_variable=3D"value xxx BEWARE of the missing closing "! In my personal cases, the most mistake mad= e. For the future: please look out "freebsd-questions" or following the recomm= endations made herein. Regards oh --=20 A FreeBSD user --Sig_/NRld3JQe1r+cyhgwef5B_.h Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iJEEARYKADkWIQRQheDybVktG5eW/1Kxzvs8OqokrwUCatMXDxsUgAAAAAAEAA5t YW51MiwyLjUrMS4xMiwyLDMACgkQsc77PDqqJK+GBwD/WrZT/HBU4SdbRRFLk4bR H0zojyXbWHMPn1FaRhyshmUBAKuBcE7FBv/GWoRtU4Ddtz6zjVcWyhu0pVuMTr08 128O =IEHA -----END PGP SIGNATURE----- --Sig_/NRld3JQe1r+cyhgwef5B_.h-- -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Ethernet not working anymore
Author: Poul-Henning Kamp
Date: Sat, 17 Oct 2026 08:58
Date: Sat, 17 Oct 2026 08:58
29 lines
3823 bytes
3823 bytes
A FreeBSD User writes: > BEWARE of the missing closing "! In my personal cases, the most mistake made. Silly idea: 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 ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Ethernet not working anymore
Author: Sulev-Madis Silber
Date: Sat, 17 Oct 2026 09:44
Date: Sat, 17 Oct 2026 09:44
29 lines
5144 bytes
5144 bytes
On October 17, 2026 11:58:35 AM GMT+03:00, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote: >A FreeBSD User writes: > >> BEWARE of the missing closing "! In my personal cases, the most mistake made. > >Silly idea: > >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 -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Ethernet not working anymore
Author: Poul-Henning Kamp
Date: Sat, 17 Oct 2026 09:46
Date: Sat, 17 Oct 2026 09:46
28 lines
3837 bytes
3837 bytes
-------- Sulev-Madis Silber writes: > >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 Well, then make the exit a sleep 30 ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Ethernet not working anymore
Author: Ruslan Zalata
Date: Sat, 17 Oct 2026 19:12
Date: Sat, 17 Oct 2026 19:12
32 lines
5921 bytes
5921 bytes
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 -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Ethernet not working anymore
Author: Sulev-Madis Silber
Date: Sun, 18 Oct 2026 00:32
Date: Sun, 18 Oct 2026 00:32
42 lines
5622 bytes
5622 bytes
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... -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads