summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2007-12-15 07:50:52 +0000
committerChris Buechler <cmb@pfsense.org>2007-12-15 07:50:52 +0000
commiteb03f14eb43fc3a67ba60be4f1f4f695995928b7 (patch)
tree41ff112aa1748d65487228ba8a63f2d6fdcffbd8
parent2980b387489c5a1b13d04d1158fc0b498490a334 (diff)
downloadpfsense-eb03f14eb43fc3a67ba60be4f1f4f695995928b7.zip
pfsense-eb03f14eb43fc3a67ba60be4f1f4f695995928b7.tar.gz
don't create /tmp/tmp symlink if it already exists (silences error at boot time when it does exist)
-rwxr-xr-xetc/rc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 7318f75..77283d4 100755
--- a/etc/rc
+++ b/etc/rc
@@ -110,7 +110,10 @@ fi
# have trouble overriding the PREFIX configure
# argument since we build our packages in a
# seperated PREFIX area
-ln -s / /tmp/tmp
+# Only create if symlink does not exist.
+if [ ! -h /tmp/tmp ]; then
+ ln -hfs / /tmp/tmp
+fi
# Malloc debugging check
if [ ! -L /etc/malloc.conf ]; then
OpenPOWER on IntegriCloud