]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - release/picobsd/isp/lang/rc.en
Remove snmp for now - it has to either shrink, or we have to invent
[FreeBSD/FreeBSD.git] / release / picobsd / isp / lang / rc.en
1 #!/bin/sh
2 # $Id: rc.en,v 1.4 1999/01/12 14:09:20 asami Exp $
3 ############################################
4 ### Special setup for one floppy PICOBSD ###
5 ### THIS IS NOT THE NORMAL /etc/rc !!!!! ###
6 ############################################
7 mount -a -t nonfs
8 if [ -f /etc/rc.conf ]; then
9     . /etc/rc.conf
10 fi
11 rm -f /var/run/*
12 if [ "x$swapfile" != "xNO" -a -w "$swapfile" -a -b /dev/vn0b ]; then
13         echo "Adding $swapfile as additional swap."
14         vnconfig /dev/vn0b $swapfile && swapon /dev/vn0b
15 fi
16 # configure serial devices
17 if [ -f /etc/rc.serial ]; then
18         . /etc/rc.serial
19 fi
20 # start up the initial network configuration.
21 if [ -f /etc/rc.network ]; then
22         . /etc/rc.network
23         network_pass1
24 fi
25 mount -a -t nfs
26 chmod 666 /dev/tty[pqrsPQRS]*
27 # clean up left-over files
28 (cd /var/run && { cp /dev/null utmp; chmod 644 utmp; })
29 if [ -n "$network_pass1_done" ]; then
30     network_pass2
31 fi
32 if [ -n "$network_pass2_done" ]; then
33     network_pass3
34 fi
35 if [ "X${inetd_enable}" = X"YES" ]; then
36         echo "Starting inetd."; inetd ${inetd_flags}
37 fi
38
39 dev_mkdb
40
41 echo ''
42 if [ "x$swapfile" = "xNO" ]; then
43         echo "WARNING: no swap partition!"
44         echo "Don't run too many programs at the same time..."
45 fi
46 echo ''
47 echo ''
48 echo '+----------- PicoBSD @VER@ (ISP) ---------------+'
49 echo '|                                              |'
50 echo '| Log in as "root" (password "setup").         |'
51 echo '|                                              |'
52 echo '| This version of PicoBSD is fully under       |'
53 echo '| BSD license. For more details see            |'
54 echo '| http://www.freebsd.org/~picobsd, or contact  |'
55 echo '| the author.                                  |'
56 echo '|                                              |'
57 echo '|                     abial@freebsd.org        |'
58 echo '|                                              |'
59 echo '+----------------------------------------------+'
60 exit 0