Project

General

Profile

Download (958 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 /conf partition
7
partsize="6m"
8

    
9
# Run some initialization routines
10
/etc/rc.d/uzip start
11

    
12
export VARMFS_COPYDBPKG=yes
13

    
14
echo -n "Starting memory file systems:"
15
for i in tmp varmfs etcmfs; do
16
       if [ -f /etc/rc.d/$i ]; then
17
			echo -n " $i"
18
			sh /etc/rc.d/$i start
19
       fi
20
done
21
echo "... done."
22

    
23
# Start PFI
24
/bin/sh /scripts/pfi start
25

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

    
39
# Create some needed directories
40
/bin/mkdir -p /var/db/pkg/
41
/bin/mkdir -p /var/tmp/vi.recover/
(30-30/79)