freebsd-skq/etc/rc.d/devfs
Mike Makonnen 994336cdd9 Create a symbolic link /dev/vga -> /dev/ttyv0.
We can't remove the sourcing of /etc/rc.devfs yet in case the user
might have custom entries in it. We will have to come up with an
/etc/devfs.rules or something to make this kind of thing easier.

Approved by:	markm (mentor)(implicit)
2003-05-02 08:10:58 +00:00

28 lines
443 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: devfs
# REQUIRE: LOGIN
# KEYWORD: FreeBSD
. /etc/rc.subr
name="devfs"
load_rc_config $name
# Setup DEVFS, ie permissions, links etc.
#
if [ -c /dev/ttyv0 -a ! -e /dev/vga ];then
ln -fs /dev/ttyv0 /dev/vga
fi
# XXX - in case the user has a customized /etc/rc.devfs we need to keep
# pulling it in until we have a better way of doing this in rc.d.
#
if [ -r /etc/rc.devfs ]; then
sh /etc/rc.devfs
fi