summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2007-12-15 07:51:44 +0000
committerChris Buechler <cmb@pfsense.org>2007-12-15 07:51:44 +0000
commit6a19fc38a6f46e2e1e2c95d9f152d1bcee7fa6d1 (patch)
tree5f6edcf50e364886740e0793631c39a6cff46728 /etc
parent9fce470bcefb7fe287cfbba44ae221678a2d6db4 (diff)
downloadpfsense-6a19fc38a6f46e2e1e2c95d9f152d1bcee7fa6d1.zip
pfsense-6a19fc38a6f46e2e1e2c95d9f152d1bcee7fa6d1.tar.gz
don't create /tmp/tmp symlink if it already exists (silences error at boot time when it does exist)
Diffstat (limited to 'etc')
-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