575716147b
Approved by: markm (mentor)(implicit) Reviewed by: dougb
29 lines
466 B
Bash
29 lines
466 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: devfs
|
|
# REQUIRE: LOGIN
|
|
# BEFORE: securelevel
|
|
# 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
|