3 # $NetBSD: bootconf.sh,v 1.5 2002/03/25 03:22:10 wiz Exp $
8 # REQUIRE: mountcritlocal
12 # Refer to newbtconf(8) for more information
15 if [ ! -e /etc/etc.current ]; then
18 if [ -L /etc/etc.default ]; then
19 def=`ls -ld /etc/etc.default 2>&1`
20 default="${def##*-> etc.}"
24 if [ "$default" = "current" ]; then
25 def=`ls -ld /etc/etc.current 2>&1`
26 default="${def##*-> etc.}"
30 for i in /etc/etc.*; do
31 name="${i##/etc/etc.}"
37 if [ "$name" = "$default" ]; then
38 echo -n "${spc}[${name}]"
40 echo -n "${spc}${name}"
50 while [ ! -d /etc/etc.$conf/. ]; do
51 trap "conf=$default; echo; echo Using default of $conf" ALRM
52 echo -n "Which configuration [$default] ? "
53 (sleep 30 && kill -ALRM $master) >/dev/null 2>&1 &
59 if [ ! -d /etc/etc.$conf/. ]; then
68 rm -f /etc/etc.current
69 ln -s /etc/etc.$conf /etc/etc.current
73 if [ -f /etc/rc.conf ]; then