Project

General

Profile

Download (901 Bytes) Statistics
| Branch: | Tag: | Revision:
1
#!/bin/sh
2
#
3
# rc.cdrom - livedisc specific routines
4
# For pfSense
5

    
6
# Size of memory file system /cf/conf partition
7
partsize="6m"
8

    
9
export VARMFS_COPYDBPKG=yes
10

    
11
for i in tmp varmfs etcmfs; do
12
	if [ -f /etc/rc.d/$i ]; then
13
		sh /etc/rc.d/$i start
14
	fi
15
done
16

    
17
# Start PFI
18
/bin/sh /scripts/pfi start
19

    
20
# If PFI did not find a config, we should create
21
# a tiny mfs under /cf/conf and populate with stock
22
# configuration.
23
if [ ! -f /conf/config.xml ]; then
24
	echo -n "Generating a MFS /conf partition... "
25
	device=$(mdconfig -a -t malloc -s ${partsize})
26
	newfs /dev/${device} > /dev/null 2>&1
27
	mount /dev/${device} /cf/conf
28
	cp /conf.default/* /cf/conf
29
	echo "done."
30
fi
31

    
32
echo -n "Generating a MFS /home partition... "
33
device=$(mdconfig -a -t malloc -s ${partsize})
34
newfs /dev/${device} > /dev/null 2>&1
35
mount /dev/${device} /home
36
echo "done."
37

    
38
# Create some needed directories
39
/bin/mkdir -p /var/tmp/vi.recover/
(38-38/105)