summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-19 00:13:26 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-19 00:13:26 +0000
commit69588d923c1b2bec2af1740372184d6fa8114939 (patch)
tree967c37759b62b0f408a61e76090c87a0759b957f /etc
parent4a095875bb95ee2f8d804dadeef267f952cb5308 (diff)
downloadpfsense-69588d923c1b2bec2af1740372184d6fa8114939.zip
pfsense-69588d923c1b2bec2af1740372184d6fa8114939.tar.gz
make rc aware of pfi configured config.xml symlinks.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc12
1 files changed, 3 insertions, 9 deletions
diff --git a/etc/rc b/etc/rc
index a551662..8f3e583 100755
--- a/etc/rc
+++ b/etc/rc
@@ -64,17 +64,11 @@ if [ ! -L /etc/dhclient.conf ]; then
ln -s /var/etc/dhclient.conf /etc/dhclient.conf
fi
-if [ ! -d /cf/conf/backup/ ]; then
- mkdir -p /cf/conf/backup/ 2>/dev/null
-fi
+[ ! -d /cf/conf/backup/ ] || mkdir -p /cf/conf/backup/ 2>/dev/null
if [ "$PLATFORM" = "cdrom" ]; then
-
- ln -s /cf/conf /conf
-
- if [ ! -f /cf/conf/config.xml ]; then
- cp /FreeSBIE/cf/conf/* /cf/conf/ 2>/dev/null
- fi
+ [ ! -L /cf/conf ] || ln -s /cf/conf /conf
+ [ ! -f /cf/conf/config.xml ] || cp /FreeSBIE/cf/conf/* /cf/conf/ 2>/dev/null
fi
set -T
OpenPOWER on IntegriCloud