summaryrefslogtreecommitdiffstats
path: root/release/picobsd/isp/floppy.tree/etc/rc
blob: f2b7ad156c7627d951026346716b730919208eb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/sh
# $Id: rc,v 1.5 1998/08/19 07:06:27 abial Exp $
############################################
### Special setup for one floppy PICOBSD ###
### THIS IS NOT THE NORMAL /etc/rc !!!!! ###
############################################
mount -a -t nonfs
if [ -f /etc/rc.conf ]; then
    . /etc/rc.conf
fi
rm -f /var/run/*
if [ "x$swapfile" != "xNO" -a -w "$swapfile" -a -b /dev/vn0b ]; then
	echo "Dodaje $swapfile jako dodatkowy swap."
	vnconfig /dev/vn0b $swapfile && swapon /dev/vn0b
fi
# configure serial devices
if [ -f /etc/rc.serial ]; then
	. /etc/rc.serial
fi
# start up the initial network configuration.
if [ -f /etc/rc.network ]; then
	. /etc/rc.network
	network_pass1
fi
mount -a -t nfs
# clean up left-over files
(cd /var/run && { cp /dev/null utmp; chmod 644 utmp; })
if [ -n "$network_pass1_done" ]; then
    network_pass2
fi
if [ -n "$network_pass2_done" ]; then
    network_pass3
fi
if [ "X${inetd_enable}" = X"YES" ]; then
	echo "Uruchamiam inetd."; inetd ${inetd_flags}
fi
if [ "X${snmpd_enable}" = X"YES" ]; then
	echo "Uruchamiam snmpd."; snmpd ${snmpd_flags}
fi

dev_mkdb

echo ''
if [ "x$swapfile" = "xNO" ]; then
	echo "UWAGA: brak swapu!"
	echo "Nie uruchamiaj zbyt wielu programow na raz..."
fi
echo ''
echo ''
echo '+------------ PicoBSD 0.4 (ISP) ---------------+'
echo '|                                              |'
echo '| Zaloguj sie jako "root" (haslo "setup").     |'
echo '|                                              |'
echo '| Ta wersja PicoBSD w pelni podlega            |'
echo '| licencji BSD. Po wiecej szczegolow zajrzyj   |'
echo '| na http://www.freebsd.org/~picobsd, lub      |'
echo '| skontaktuj sie z autorem.                    |'
echo '|                                              |'
echo '|                     abial@nask.pl            |'
echo '|                                              |'
echo '+----------------------------------------------+'
exit 0
OpenPOWER on IntegriCloud