summaryrefslogtreecommitdiffstats
path: root/etc/rc.cdrom
blob: 4faae61416b840bb5d9a9f4ca115cd81dad84ae5 (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
#!/bin/sh
#
# rc.cdrom - livedisc specific routines
# For pfSense

# Run some FreeSBIE routines
/etc/rc.d/freesbie_1st

# Start PFI
/bin/sh /scripts/pfi start

# If PFI did not find a config, this will not be
# a directory.  Go ahead and populate with stock
# configuration.
if [ ! -f /cf/conf ]; then
	mkdir -p /cf/conf
	/rescue/cp /FreeSBIE/cf/conf/* /cf/conf/
fi                                          

# If by this time /conf doesn't exist then lets
# go ahead and link /conf to /cf/conf
if [ ! -L /conf ]; then       
    /rescue/ln -s /cf/conf /conf
fi

# If the default config.xml and ez-ipupdate.cache do not exist,
# lets populate them from the default (factory configuration)
# files.
[ ! -f /cf/conf/config.xml ] || /rescue/cp /FreeSBIE/cf/conf/config.xml /cf/conf/
[ ! -f /cf/conf/ez-ipupdate.cache ] || /rescue/cp /FreeSBIE/cf/conf/ez-ipupdate.cache /cf/conf/

# Create some needed directories
mkdir /var/db
OpenPOWER on IntegriCloud