summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-24 23:39:05 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-24 23:39:05 +0000
commit17b9532b0c81d54b2e9634054a2272e0a29662c7 (patch)
tree7d05f656bb6c32957f227b0964055131cc87b619 /etc/rc
parent890b0516d9b5839dbdc81f3334e08c24c68269ee (diff)
downloadpfsense-17b9532b0c81d54b2e9634054a2272e0a29662c7.zip
pfsense-17b9532b0c81d54b2e9634054a2272e0a29662c7.tar.gz
Do not try to execute *
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc14
1 files changed, 8 insertions, 6 deletions
diff --git a/etc/rc b/etc/rc
index 1c93637..caa9e2d 100755
--- a/etc/rc
+++ b/etc/rc
@@ -70,17 +70,19 @@ cd /var/run && cp /dev/null utmp && chmod 644 utmp
/sbin/pfctl -f /tmp/rules.debug >/dev/null 2>&1
/sbin/pfctl -e >/dev/null 2>&1
-echo Starting Secure Shell Services ...
-/etc/sshd
-
echo Starting INETD for FTP-PROXY...
/usr/sbin/inetd -wW -C 60
+echo Starting Secure Shell Services ...
+/etc/sshd
+
/usr/sbin/cron 2>/dev/null
-for FILE in /usr/local/etc/rc.d/* ; do
- echo "Starting ${FILE}..."
- sh $FILE
+for FILE in /usr/local/etc/rc.d/*.sh; do
+ if [ -e $FILE ]; then
+ echo "Starting ${FILE}..."
+ sh $FILE
+ fi
done
exit 0
OpenPOWER on IntegriCloud