summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc15
-rwxr-xr-xetc/rc.bootup81
-rwxr-xr-xetc/rc.initial4
-rwxr-xr-xusr/local/www/diag_logs_filter.php2
4 files changed, 52 insertions, 50 deletions
diff --git a/etc/rc b/etc/rc
index 3020a53..6822844 100755
--- a/etc/rc
+++ b/etc/rc
@@ -1,8 +1,9 @@
#!/bin/sh
-# /etc/rc
-# part of m0n0wall (http://neon1.net/m0n0wall)
-#
+# /etc/rc - master bootup script, invokes php setup
+# part of pfSense by Scott Ullrich
+# Copyright (C) 2004 Scott Ullrich, All rights reserved.
+# originally based on m0n0wall (http://neon1.net/m0n0wall)
# Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
# All rights reserved.
@@ -15,6 +16,10 @@ HOME=/
PATH=/sbin:/bin:/usr/sbin:/usr/bin
export HOME PATH
+echo
+echo "Starting pfSense ..."
+echo
+
/sbin/mount -a || fsck -y && mount -a
set -T
@@ -45,10 +50,6 @@ cd /var/run && cp /dev/null utmp && chmod 644 utmp
# Run ldconfig
/sbin/ldconfig -elf /usr/lib
-echo
-echo "Starting pfSense ..."
-echo
-
# let the PHP-based configuration subsystem set up the system now
/etc/rc.bootup
diff --git a/etc/rc.bootup b/etc/rc.bootup
index 04f8266..a869ab5 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -2,21 +2,22 @@
<?php
/*
rc.bootup
- part of m0n0wall (http://m0n0.ch/wall)
-
+ part of pfSense by Scott Ullrich
+ originally based on m0n0wall (http://m0n0.ch/wall)
+
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
All rights reserved.
-
+
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
-
+
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
-
+
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
-
+
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
@@ -38,110 +39,110 @@
/* parse the configuration and include all functions used below */
require_once("config.inc");
require_once("functions.inc");
-
+
/* convert configuration, if necessary */
convert_config();
-
+
/* run any early shell commands specified in config.xml */
system_do_shell_commands(1);
-
+
/* save dmesg output to file */
system_dmesg_save();
-
+
/* set up our timezone */
system_timezone_configure();
-
+
/* set up our hostname */
system_hostname_configure();
-
+
/* make hosts file */
system_hosts_generate();
-
+
/* generate resolv.conf */
system_resolvconf_generate();
-
+
/* start pccardd */
if (!in_array($g['platform'], $g['nopccard_platforms']))
system_pccard_start();
-
+
/* establish ipfilter ruleset */
filter_configure();
-
+
/* configure loopback interface */
interfaces_loopback_configure();
-
+
/* set up VLAN virtual interfaces */
interfaces_vlan_configure();
-
+
/* set up LAN interface */
interfaces_lan_configure();
-
+
/* set up WAN interface */
interfaces_wan_configure();
-
+
/* set up Optional interfaces */
interfaces_optional_configure();
-
+
/* start OpenVPN server & clients */
ovpn_configure();
-
+
/* resync ipfilter */
filter_resync();
-
+
/* start ipmon */
filter_ipmon_start();
-
+
/* set up static routes */
system_routing_configure();
-
+
/* enable routing */
system_routing_enable();
-
+
/* start syslogd */
system_syslogd_start();
-
+
/* start web server */
system_webgui_start();
-
+
/* configure console menu */
system_console_configure();
-
+
/* start dnsmasq service */
services_dnsmasq_configure();
-
+
/* start dyndns service */
services_dyndns_configure();
-
+
/* start DHCP service */
services_dhcpd_configure();
-
+
/* start SNMP service */
services_snmpd_configure();
-
+
/* start proxy ARP service */
services_proxyarp_configure();
/* start the NTP client */
system_ntp_configure();
-
+
/* start pptpd */
vpn_pptpd_configure();
-
+
/* start traffic shaper */
shaper_configure();
-
+
/* start IPsec tunnels */
vpn_ipsec_configure();
-
+
/* start the captive portal */
captiveportal_configure();
-
+
/* execute the rc scripts of extensions */
system_do_extensions();
-
+
/* run any shell commands specified in config.xml */
system_do_shell_commands();
-
+
/* done */
unlink("{$g['varrun_path']}/booting");
?>
diff --git a/etc/rc.initial b/etc/rc.initial
index ad9e5c5..962d97f 100755
--- a/etc/rc.initial
+++ b/etc/rc.initial
@@ -2,8 +2,8 @@
# /etc/rc.initial
# part of pfSense by Scott Ullrich
-# based on m0n0wall (http://neon1.net/m0n0wall)
-#
+# Copyright (C) 2004 Scott Ullrich, All rights reserved.
+# originally based on m0n0wall (http://neon1.net/m0n0wall)
# Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
# All rights reserved.
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php
index e5c09a2..05c3713 100755
--- a/usr/local/www/diag_logs_filter.php
+++ b/usr/local/www/diag_logs_filter.php
@@ -3,7 +3,7 @@
/*
diag_logs_filter.php
part of pfSesne by Scott Ullrich
- based originally on m0n0wall (http://m0n0.ch/wall)
+ originally based on m0n0wall (http://m0n0.ch/wall)
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
All rights reserved.
OpenPOWER on IntegriCloud