summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-08 21:50:44 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-08 21:50:44 +0000
commit4e7b2b276ee7972c146702165112a24b527a310a (patch)
treed67f897e8ff5654ff74b00928c8ec5c5a67cc85b /etc/rc
parente30a5970ddbb4784f897423fabe3ab21a3163e48 (diff)
downloadpfsense-4e7b2b276ee7972c146702165112a24b527a310a.zip
pfsense-4e7b2b276ee7972c146702165112a24b527a310a.tar.gz
Launch UNIONFS script if /dist/uniondirs exist
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc21
1 files changed, 13 insertions, 8 deletions
diff --git a/etc/rc b/etc/rc
index fc9bc41..98b3297 100755
--- a/etc/rc
+++ b/etc/rc
@@ -72,7 +72,7 @@ else
SWAPDEVICE=`cat /etc/fstab | grep swap | cut -f1`
/sbin/swapon -a 2>/dev/null >/dev/null
-
+
/usr/local/bin/php -f /etc/rc.conf_mount_rw
fi
echo " done."
@@ -80,7 +80,7 @@ echo " done."
# Make sure symlink is correct on embedded
if [ "$PLATFORM" = "embedded" ] ; then
rm /conf
- ln -s /cf/conf/ /conf
+ ln -s /cf/conf/ /conf
fi
# Repair symlinks if they are broken
@@ -92,12 +92,12 @@ fi
# Repair symlinks if they are broken
if [ ! -L /etc/hosts ]; then
rm -rf /etc/hosts
- ln -s /var/etc/hosts /etc/hosts
+ ln -s /var/etc/hosts /etc/hosts
fi
if [ ! -L /etc/resolv.conf ]; then
rm -rf /etc/resolv.conf
- ln -s /var/etc/resolv.conf /etc/resolv.conf
+ ln -s /var/etc/resolv.conf /etc/resolv.conf
fi
# Malloc debugging check
@@ -151,7 +151,7 @@ else
clog -i -s 512144 /var/log/filter.log
clog -i -s 32768 /var/log/dhcpd.log
clog -i -s 32768 /var/log/vpn.log
- clog -i -s 10000 /var/log/openvpn.log
+ clog -i -s 10000 /var/log/openvpn.log
clog -i -s 32768 /var/log/portalauth.log
clog -i -s 10000 /var/log/ipsec.log
clog -i -s 262144 /var/log/slbd.log
@@ -184,7 +184,12 @@ if [ -f "/dev/kbdmux0" ]; then
echo "Starting Keyboard Mux Services..."
kbdcontrol -k /dev/kbdmux0 < /dev/console
[ -c "/dev/atkbd0" ] && kbdcontrol -a atkbd0 < /dev/console
- [ -c "/dev/ukbd0" ] && kbdcontrol -a ukbd0 < /dev/console
+ [ -c "/dev/ukbd0" ] && kbdcontrol -a ukbd0 < /dev/console
+fi
+
+# Fire up unionfs if mount points exist.
+if [ -f /dist/uniondirs ]; then
+ /etc/rc.d/unionfs start
fi
# let the PHP-based configuration subsystem set up the system now
@@ -198,9 +203,9 @@ if [ ! "$PLATFORM" = "cdrom" ]; then
echo "Syncing packages..."
/etc/rc.packages 2>/dev/null
-
+
echo "Executing rc.d items... "
-
+
for FILE in /usr/local/etc/rc.d/*.sh; do
echo -n " Starting ${FILE}..."
sh $FILE start >>/tmp/bootup_messages 2>&1 &
OpenPOWER on IntegriCloud