Commit 638c6daf authored by Franco Fichtner's avatar Franco Fichtner

etc: move more files

parent 576c1cd5
include("/usr/local/etc/ecl.php");
include("/etc/ecl.php");
#!/bin/sh #!/bin/sh
echo -n "Checking..." echo -n "Checking..."
if [ `tar tzPf $1 /etc/rc 2>/dev/null` ]; then if [ `tar tzPf $1 /usr/local/etc/rc 2>/dev/null` ]; then
echo " Backup file looks OK." echo " Backup file looks OK."
echo "One moment, restoring ${1}..." echo "One moment, restoring ${1}..."
if [ -f /tmp/do_not_restore_config.xml ]; then if [ -f /tmp/do_not_restore_config.xml ]; then
......
#!/bin/sh #!/bin/sh
# /etc/rc - master bootup script, invokes php setup
# part of pfSense by Scott Ullrich # part of pfSense by Scott Ullrich
# Copyright (C) 2004-2010 Scott Ullrich, All rights reserved. # Copyright (C) 2004-2010 Scott Ullrich, All rights reserved.
# originally based on m0n0wall (http://neon1.net/m0n0wall) # originally based on m0n0wall (http://neon1.net/m0n0wall)
...@@ -122,7 +121,7 @@ else ...@@ -122,7 +121,7 @@ else
USE_MFS_TMPVAR=`/usr/bin/grep -c use_mfs_tmpvar /cf/conf/config.xml` USE_MFS_TMPVAR=`/usr/bin/grep -c use_mfs_tmpvar /cf/conf/config.xml`
if [ "${PLATFORM}" = "nanobsd" ] || [ ${USE_MFS_TMPVAR} -gt 0 ]; then if [ "${PLATFORM}" = "nanobsd" ] || [ ${USE_MFS_TMPVAR} -gt 0 ]; then
/etc/rc.embedded /usr/local/etc/rc.embedded
fi fi
fi fi
...@@ -377,19 +376,8 @@ echo "done." ...@@ -377,19 +376,8 @@ echo "done."
/usr/local/etc/rc.php_ini_setup 2>/tmp/php_errors.txt /usr/local/etc/rc.php_ini_setup 2>/tmp/php_errors.txt
# Launch external configuration loader for supported platforms # Launch external configuration loader for supported platforms
if [ "$PLATFORM" = "nanobsd" ]; then if [ "$PLATFORM" = "nanobsd" -o "$PLATFORM" = "pfSense" ]; then
/usr/local/bin/php -q /etc/ecl.php /usr/local/bin/php -q /usr/local/etc/ecl.php
fi
# Launch external configuration loader for supported platforms
if [ "$PLATFORM" = "pfSense" ]; then
/usr/local/bin/php -q /etc/ecl.php
fi
if [ -f /etc/rc.custom_boot_early ]; then
/bin/echo -n "Launching /etc/rc.custom_boot_early...";
/etc/rc.custom_boot_early
echo "Done"
fi fi
chmod u+rx /usr/local/opnsense/check_reload_status.py chmod u+rx /usr/local/opnsense/check_reload_status.py
......
#!/bin/sh #!/bin/sh
# #
# rc.embedded - embedded system specific startup information
# For pfSense
# Size of /tmp # Size of /tmp
USE_MFS_TMP_SIZE=`/usr/bin/grep use_mfs_tmp_size /cf/conf/config.xml | /usr/bin/cut -f2 -d'>' | /usr/bin/cut -f1 -d'<'` USE_MFS_TMP_SIZE=`/usr/bin/grep use_mfs_tmp_size /cf/conf/config.xml | /usr/bin/cut -f2 -d'>' | /usr/bin/cut -f1 -d'<'`
if [ ! -z ${USE_MFS_TMP_SIZE} ] && [ ${USE_MFS_TMP_SIZE} -gt 0 ]; then if [ ! -z ${USE_MFS_TMP_SIZE} ] && [ ${USE_MFS_TMP_SIZE} -gt 0 ]; then
...@@ -19,9 +16,6 @@ else ...@@ -19,9 +16,6 @@ else
varsize="60m" varsize="60m"
fi fi
# Run some initialization routines
[ -f /etc/rc.d/uzip ] && /etc/rc.d/uzip start
echo -n "Setting up memory disks..." echo -n "Setting up memory disks..."
mdmfs -S -M -s ${tmpsize} md /tmp mdmfs -S -M -s ${tmpsize} md /tmp
mdmfs -S -M -s ${varsize} md /var mdmfs -S -M -s ${varsize} md /var
......
...@@ -119,7 +119,7 @@ case ${opmode} in ...@@ -119,7 +119,7 @@ case ${opmode} in
/usr/sbin/tcpdump -s 256 -v -S -l -n -e -ttt -i pflog0 /usr/sbin/tcpdump -s 256 -v -S -l -n -e -ttt -i pflog0
;; ;;
11) 11)
/etc/rc.restart_webgui /usr/local/etc/rc.restart_webgui
;; ;;
12) 12)
/usr/local/sbin/pfSsh.php /usr/local/sbin/pfSsh.php
......
...@@ -471,7 +471,7 @@ if (!$dry_run) { ...@@ -471,7 +471,7 @@ if (!$dry_run) {
} }
if($restart_webgui) { if($restart_webgui) {
echo " restarting webConfigurator... "; echo " restarting webConfigurator... ";
mwexec("/etc/rc.restart_webgui"); mwexec("/usr/local/etc/rc.restart_webgui");
} }
} }
......
#!/usr/local/bin/php -f #!/usr/local/bin/php -f
<?php <?php
/* $Id$ */
/* /*
rc.reload_all
part of pfSense (https://www.pfsense.org) part of pfSense (https://www.pfsense.org)
Copyright (C) 2004 Scott Ullrich Copyright (C) 2004 Scott Ullrich
All rights reserved. All rights reserved.
...@@ -42,5 +41,3 @@ reload_all_sync(); ...@@ -42,5 +41,3 @@ reload_all_sync();
sleep(2); sleep(2);
log_error("rc.reload_all: Reloading filter configuration."); log_error("rc.reload_all: Reloading filter configuration.");
filter_configure_sync(); filter_configure_sync();
?>
#!/usr/local/bin/php -f #!/usr/local/bin/php -f
<?php <?php
/* $Id$ */
/* /*
rc.reload_interfaces
part of pfSense (https://www.pfsense.org) part of pfSense (https://www.pfsense.org)
Copyright (C) 2004 Scott Ullrich Copyright (C) 2004 Scott Ullrich
All rights reserved. All rights reserved.
...@@ -41,5 +40,3 @@ reload_interfaces_sync(); ...@@ -41,5 +40,3 @@ reload_interfaces_sync();
filter_configure_sync(); filter_configure_sync();
/* XXX: needs fixing */ /* XXX: needs fixing */
//ovpn_config_server("pfreload"); //ovpn_config_server("pfreload");
?>
...@@ -11,7 +11,7 @@ type:script ...@@ -11,7 +11,7 @@ type:script
message:Linkup stopping %s message:Linkup stopping %s
[all.reload] [all.reload]
command:/etc/rc.reload_interfaces command:/usr/local/etc/rc.reload_interfaces
parameters: parameters:
type:script type:script
message:Reloading interfaces message:Reloading interfaces
...@@ -47,13 +47,13 @@ type:script ...@@ -47,13 +47,13 @@ type:script
message:Reloading filter_configure_xmlrpc message:Reloading filter_configure_xmlrpc
[carpmaster] [carpmaster]
command:/etc/rc.carpmaster command:/usr/local/etc/rc.carpmaster
parameters:%s parameters:%s
type:script type:script
message:Carp master event message:Carp master event
[carpbackup] [carpbackup]
command:/etc/rc.carpbackup command:/usr/local/etc/rc.carpbackup
parameters:%s parameters:%s
type:script type:script
message:Carp backup event message:Carp backup event
......
[reload|restart.all] [reload|restart.all]
command:/etc/rc.reload_all command:/usr/local/etc/rc.reload_all
parameters: parameters:
type:script type:script
message:Reloading all message:Reloading all
...@@ -60,7 +60,7 @@ type:script ...@@ -60,7 +60,7 @@ type:script
message:starting sshd message:starting sshd
[reload|restart.webgui] [reload|restart.webgui]
command:/etc/rc.restart_webgui command:/usr/local/etc/rc.restart_webgui
parameters: parameters:
type:script type:script
message:webConfigurator restart in progress message:webConfigurator restart in progress
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment