Updated bootlogd and init to better compile and run on GNU/kFreeBSD.

This commit is contained in:
Jesse Smith
2018-02-20 19:30:46 -04:00
parent 80dbcf3de3
commit f52d703c8e
2 changed files with 12 additions and 4 deletions

View File

@@ -753,11 +753,11 @@ void console_stty(void)
#ifdef __FreeBSD_kernel__
/*
* The kernel of FreeBSD expects userland to set TERM. Usually, we want
* "cons25". Later, gettys might disagree on this (i.e. we're not using
* "xterm". Later, gettys might disagree on this (i.e. we're not using
* syscons) but some boot scripts, like /etc/init.d/xserver-xorg, still
* need a non-dumb terminal.
*/
putenv ("TERM=cons25");
putenv ("TERM=xterm");
#endif
(void) tcgetattr(fd, &tty);