2003-02-06 22:00:38 +00:00
|
|
|
|
#!/bin/sh -
|
2000-10-08 19:20:36 +00:00
|
|
|
|
# Copyright (c) 1998 S<>ren Schmidt
|
|
|
|
|
# All rights reserved.
|
|
|
|
|
#
|
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
|
# are met:
|
|
|
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
|
# notice, this list of conditions and the following disclaimer in the
|
|
|
|
|
# documentation and/or other materials provided with the distribution.
|
|
|
|
|
#
|
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
|
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
|
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
|
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
|
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
|
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
|
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
|
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
|
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
|
# SUCH DAMAGE.
|
1998-09-14 09:14:46 +00:00
|
|
|
|
#
|
1999-08-27 23:37:10 +00:00
|
|
|
|
# $FreeBSD$
|
1998-09-14 09:14:46 +00:00
|
|
|
|
#
|
2000-10-08 19:20:36 +00:00
|
|
|
|
|
1998-09-14 09:14:46 +00:00
|
|
|
|
# If there is a global system configuration file, suck it in.
|
2000-10-08 19:20:36 +00:00
|
|
|
|
|
1999-09-13 15:44:20 +00:00
|
|
|
|
if [ -r /etc/defaults/rc.conf ]; then
|
1999-02-10 18:08:16 +00:00
|
|
|
|
. /etc/defaults/rc.conf
|
2000-04-27 08:43:49 +00:00
|
|
|
|
source_rc_confs
|
1999-09-13 15:44:20 +00:00
|
|
|
|
elif [ -r /etc/rc.conf ]; then
|
1998-09-14 09:14:46 +00:00
|
|
|
|
. /etc/rc.conf
|
|
|
|
|
fi
|
|
|
|
|
|
1999-10-12 19:23:51 +00:00
|
|
|
|
# Setup DEVFS, ie permissions, links etc.
|
1999-09-13 15:44:20 +00:00
|
|
|
|
#
|
2002-06-18 07:33:56 +00:00
|
|
|
|
cd /dev
|
|
|
|
|
|
|
|
|
|
# This isn't necessarily a good example, since we probably shouldn't need this.
|
|
|
|
|
# However, a lot of X software depends on it.
|
|
|
|
|
#
|
2002-06-19 05:35:16 +00:00
|
|
|
|
if [ -c ttyv0 -a ! -e vga ]; then
|
2002-06-18 07:33:56 +00:00
|
|
|
|
ln -fs ttyv0 vga
|
2002-06-18 07:14:43 +00:00
|
|
|
|
fi
|
2002-06-18 07:33:56 +00:00
|
|
|
|
|
|
|
|
|
# Commonly used by many ports
|
|
|
|
|
#
|
2002-06-19 05:35:16 +00:00
|
|
|
|
#if [ -c acd0c -a ! -e cdrom ]; then
|
2002-06-18 07:33:56 +00:00
|
|
|
|
# ln -fs acd0c cdrom
|
|
|
|
|
#fi
|
|
|
|
|
|
|
|
|
|
# Allow users to query the smb device
|
|
|
|
|
#
|
|
|
|
|
#if [ -c smb0 ]; then
|
|
|
|
|
# chmod 660 smb0
|
|
|
|
|
#fi
|