View | Details | Raw Unified | Return to bug 29361
Collapse All | Expand All

(-)src/sbin/startslip/startslip.c (+15 lines)
Lines 428-433 Link Here
428
	 * Attach
428
	 * Attach
429
	 */
429
	 */
430
	printd("setd");
430
	printd("setd");
431
432
	/*
433
	 * Attempt to load the SLIP interface KLD if it isn't loaded
434
	 * already.
435
	 */
436
#if defined(__FreeBSD__) && !defined(NOKLDLOAD)
437
	if (modfind("if_sl") == -1) {
438
 		if (kldload("if_sl") == -1) {
439
			syslog(LOG_ERR, "kldload if_sl: %s\n",
440
			   strerror(errno));
441
			down(2);
442
		}
443
	}
444
#endif
445
431
	disc = SLIPDISC;
446
	disc = SLIPDISC;
432
	if (ioctl(fd, TIOCSETD, &disc) < 0) {
447
	if (ioctl(fd, TIOCSETD, &disc) < 0) {
433
		syslog(LOG_ERR, "%s: ioctl (%s, TIOCSETD): %m",
448
		syslog(LOG_ERR, "%s: ioctl (%s, TIOCSETD): %m",

Return to bug 29361