summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-29 19:49:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-29 19:49:19 +0000
commitcdbc61b6e2eed34f1c19c20c080ccc86fd3532f8 (patch)
tree98c1dd788fbd654d7f77231980617a7a8ed669ac
parent4b15759a2b4ad05092b96850797b271b0bce306e (diff)
downloadpfsense-cdbc61b6e2eed34f1c19c20c080ccc86fd3532f8.zip
pfsense-cdbc61b6e2eed34f1c19c20c080ccc86fd3532f8.tar.gz
Make sure /etc/rc.conf does not exist. Evil lurks within if it exists and gets held over from livecd.
-rwxr-xr-xetc/rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index d591e08..428cc00 100755
--- a/etc/rc
+++ b/etc/rc
@@ -106,6 +106,11 @@ cd /var/run && cp /dev/null utmp && chmod 644 utmp
/usr/local/bin/php -f /etc/rc.conf_mount_rw
+# Make sure /etc/rc.conf doesn't exist.
+if [ -f /etc/rc.conf ]; then
+ rm -rf /etc/rc.conf
+fi
+
# let the PHP-based configuration subsystem set up the system now
/etc/rc.bootup
OpenPOWER on IntegriCloud