diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-19 00:13:26 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-19 00:13:26 +0000 |
commit | 69588d923c1b2bec2af1740372184d6fa8114939 (patch) | |
tree | 967c37759b62b0f408a61e76090c87a0759b957f /etc/rc | |
parent | 4a095875bb95ee2f8d804dadeef267f952cb5308 (diff) | |
download | pfsense-69588d923c1b2bec2af1740372184d6fa8114939.zip pfsense-69588d923c1b2bec2af1740372184d6fa8114939.tar.gz |
make rc aware of pfi configured config.xml symlinks.
Diffstat (limited to 'etc/rc')
-rwxr-xr-x | etc/rc | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -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 |