summaryrefslogtreecommitdiffstats
path: root/etc/rc.cdrom
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-28 21:58:30 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-28 21:58:30 +0000
commit5aa8f8c763b4b6c32f4ffd7e56a9d4924b54257f (patch)
tree25cec32b46a3d71bcf00a7b99cdeff48ebab3e2c /etc/rc.cdrom
parent881bc5dd4487ddf39806ff19ce85e788bf0045b4 (diff)
downloadpfsense-5aa8f8c763b4b6c32f4ffd7e56a9d4924b54257f.zip
pfsense-5aa8f8c763b4b6c32f4ffd7e56a9d4924b54257f.tar.gz
Make sure we dont overwrite mounted pfi media which contains config.xml.
DOH!
Diffstat (limited to 'etc/rc.cdrom')
-rwxr-xr-xetc/rc.cdrom12
1 files changed, 9 insertions, 3 deletions
diff --git a/etc/rc.cdrom b/etc/rc.cdrom
index b8a62f0..2d95aed 100755
--- a/etc/rc.cdrom
+++ b/etc/rc.cdrom
@@ -29,9 +29,15 @@ fi
# If the default config.xml and ez-ipupdate.cache do not exist,
# lets populate them from the default (factory configuration)
# files.
-/rescue/cp /FreeSBIE/cf/conf/config.xml /cf/conf/
-/rescue/cp /FreeSBIE/conf.default/config.xml /conf.default/config.xml
-/rescue/cp /FreeSBIE/cf/conf/ez-ipupdate.cache /cf/conf/
+if [ ! -f /cf/conf/config.xml ]; then
+ /rescue/cp /FreeSBIE/cf/conf/config.xml /cf/conf/
+fi
+if [ ! -f /conf.default/config.xml ]; then
+ /rescue/cp /FreeSBIE/conf.default/config.xml /conf.default/config.xml
+fi
+if [ ! -f /cf/conf/ez-ipupdate.cache ]; then
+ /rescue/cp /FreeSBIE/cf/conf/ez-ipupdate.cache /cf/conf/ez-ipupdate.cache
+fi
# Create some needed directories
/bin/mkdir -p /var/db/pkg/
OpenPOWER on IntegriCloud