summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-03-15 20:19:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-03-15 20:19:19 +0000
commitdbdbd597d266190ebdecac40b9c4e18fbf38217e (patch)
tree848f71ec4500d2ae0de8b163cfdd0906e66dec5f /etc/rc
parent4210bc05ecdd9e63f46976d70aaaa02ade595d91 (diff)
downloadpfsense-dbdbd597d266190ebdecac40b9c4e18fbf38217e.zip
pfsense-dbdbd597d266190ebdecac40b9c4e18fbf38217e.tar.gz
/var/log is a ram disk. Do not worry about CDROM checks.
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc54
1 files changed, 26 insertions, 28 deletions
diff --git a/etc/rc b/etc/rc
index c9d0898..944afe7 100755
--- a/etc/rc
+++ b/etc/rc
@@ -156,34 +156,32 @@ rm -rf /var/run/*
echo -n "."
DISABLESYSLOGCLOG=`cat /cf/conf/config.xml | grep disablesyslogclog | wc -l | awk '{ print $1 }'`
-if [ ! "$PLATFORM" = "cdrom" ]; then
- if [ "$DISABLESYSLOGCLOG" -gt "0" ]; then
- touch /var/log/system.log
- touch /var/log/filter.log
- touch /var/log/dhcpd.log
- touch /var/log/vpn.log
- touch /var/log/openvpn.log
- touch /var/log/portalauth.log
- touch /var/log/ipsec.log
- touch /var/log/slbd.log
- touch /var/log/lighttpd.log
- touch /var/log/ntpd.log
- else
- # generate circular logfiles
- clog -i -s 512144 /var/log/system.log
- clog -i -s 512144 /var/log/filter.log
- clog -i -s 65535 /var/log/dhcpd.log
- clog -i -s 65535 /var/log/vpn.log
- clog -i -s 65535 /var/log/openvpn.log
- clog -i -s 65535 /var/log/portalauth.log
- clog -i -s 65535 /var/log/ipsec.log
- clog -i -s 65535 /var/log/slbd.log
- clog -i -s 65535 /var/log/lighttpd.log
- clog -i -s 65535 /var/log/ntpd.log
- fi
- # change permissions on newly created clog files.
- chmod 0600 /var/log/system.log /var/log/filter.log /var/log/dhcpd.log /var/log/vpn.log /var/log/portalauth.log /var/log/slbd.log
-fi
+if [ "$DISABLESYSLOGCLOG" -gt "0" ]; then
+ touch /var/log/system.log
+ touch /var/log/filter.log
+ touch /var/log/dhcpd.log
+ touch /var/log/vpn.log
+ touch /var/log/openvpn.log
+ touch /var/log/portalauth.log
+ touch /var/log/ipsec.log
+ touch /var/log/slbd.log
+ touch /var/log/lighttpd.log
+ touch /var/log/ntpd.log
+else
+ # generate circular logfiles
+ clog -i -s 512144 /var/log/system.log
+ clog -i -s 512144 /var/log/filter.log
+ clog -i -s 65535 /var/log/dhcpd.log
+ clog -i -s 65535 /var/log/vpn.log
+ clog -i -s 65535 /var/log/openvpn.log
+ clog -i -s 65535 /var/log/portalauth.log
+ clog -i -s 65535 /var/log/ipsec.log
+ clog -i -s 65535 /var/log/slbd.log
+ clog -i -s 65535 /var/log/lighttpd.log
+ clog -i -s 65535 /var/log/ntpd.log
+fi
+# change permissions on newly created clog files.
+chmod 0600 /var/log/system.log /var/log/filter.log /var/log/dhcpd.log /var/log/vpn.log /var/log/portalauth.log /var/log/slbd.log
echo -n "."
DEVFS=`mount | grep devfs | wc -l | cut -d" " -f8`
OpenPOWER on IntegriCloud