Convert almost all /sbin/sysctl calls to php functions
Back to cons25 for now since we found some issues with xterm on serial console
Fix #3647 and other improvements:
- Remove auto_login(), now gettytab is a constant file- Add reload_ttys(), that will send a SIGHUP to init and make it reload /etc/ttys- Change serial speed on /etc/ttys when necessary- Change console and serial auto_login on /etc/ttys when necessary...
Remove not needed anymore function
Start and configure Unbound on boot
Use events to start sshd rather than relying on forking
Add a knob to prefer IPv4 over IPv6, it fixes #2833
Resolves #3177. Do a filter reconfigure if the dynds ipsec hosts are present and being reloaded.
Use physmem and realmem from get_memory() in the appropriate places
Start DHCrelay6 on boot
Disable apc during bootup since its useless anyway and just consumes memory uselessly
Reload ipsec with dynamic hostnames after bootup that dns is available. Helps: http://forum.pfsense.org/index.php/topic,61301.0.html
Not sure why this is part of the bootup process but it shouldn't. Hopefully nothing breaks
Say goodbye to routed at bootup
Now that routed/RIP has been removed from the base system, it generates errors trying to start it in the base system boot script.(I guess that if it is installed as a package, the package start code will bring it up at the end of the base system boot)
Do the syslogd restart unconditionally. It happens on IPv4 as well as IPv6. See http://forum.pfsense.org/index.php/topic,58345.0.html
Merge git pull request 313 from bcyrill with some modifications
Move up the syslog daemon so that we get a larger part of the bootup sequence.
Start dnsmasq before ntp because ntp can fail if it doesn't have proper/working DNS.
Resolves #2529. Load the ipfw module before any commands are executed on CP. Also move the filter_load_ipfw() to captiveportal.inc:captiveportal_load_modules() since no other place uses ipfw(4)
Add done after NTP Time Client start message
Add a done and newline so the console messages at boot all line up the same.
Add an option to System > Advanced, misc tab to enable loading thermal modules (amdtemp, coretemp)
Display different message and do not display message about interfaces that do not exist if this is the default configuration.
Do not directly print out a message when checking the interfaces, instead saving the list to use later. Display this list before the interface mismatch message. Fixes #2468 and fixes #2531
Generalize the Crypto hardware option and add GUI support for AES-NI.
Bye, bye olsrd back to packages.
Teach mwexec and mwexec_bg how to optionally clear signal masks, and use that when launching ntp or ntpdate.
On its own, ntpd does not sync fast enough at bootup, so bring back the ntpdate sync but improve it so it can't get stuck forever.
Add cheap hack to make syslogd forwarding to IPv6 work at bootup. Fixes #2370
Missed removing the function from here as well
Option to disable startup/shutdown sounds
Make initial changes to allow pfSense to work in a jail.
This mostly avoids starting things that will not work and gets theinitial config. Most of the pfSense functionality will not work(pf rules, routing, etc) but it can be used for testing.
Start NTPd after dns since its a requirment and latest changes should help with delays people are reporting. Reminded-by: Jim
Correct event calling during bootup for rc.newipsecdns and also convert the command executed during an ipsec even to go through check_reload_status which will prevent races on calling rc.newipsecdns. Which might lead to many filterdns processes.
Switch this to check_reload_status event to see if it solves any possible issues of nohup blocking signals to be delivered to filterdns proces.
Drop the ntpdate sync in favor of using ntpd -s, which should have the same net effect without needing the shell script that has been prone to hanging.
Backing this out to see if it unbreaks NanoBSD upgrades with packages involved. Revert "Workaround for conf_mount_rw/ro during boot to only allow it to change at the start and end. Fixes #1279"
This reverts commit 548be1fd6697ab115cbb29d61bc5507744488094.
Workaround for conf_mount_rw/ro during boot to only allow it to change at the start and end. Fixes #1279
Trigger a VPN tunnel reload after configuring IPsec, it will handle all the hostname tunnels after boot finishes
After finishing the installation clear the flag for package sync.
Warn users a different way if packages are being reinstalled in the background. Only lock out package pages, still print a giant warning on the others. (Some people were getting stuck in this state http://forum.pfsense.org/index.php/topic,32531.0.html )
Lock firmwarelock when upgrading packages
Ticket #317. Unconditionally synchronize users on bootup this might prevent some reports of ssh keys not being there.
Do not unlink file, it's handled by behind the scenes pkg-utils.inc code
Fix typo
Include pkg-utils.inc
Reinstall packages on bootup during console. Ticket #1156
Start relayd after routing has been started.
Use full path to binary and silence errors if any on unlink.
Move all dynamic dns update processes under the same even 'reload dyndns' since it makes sense to do so.
Do the filter reload before vpn and some other services which get impacted or impact filter reload. Let alone that they do not impact filter reload at all.
Bring interfaces up only if there is a mismatch to allow them to be reassigned.
Recent move (d32d3970d58683d02f89073103eb595eaa8f395f) of routed/ items required additional files to be updated to reflect correct path.
unbreak rc.bootup
Bring gitsync to the new check_reload_status behaviour.
Use the new events mechanisms to dispatch events.
Revert "Remove redundant call to system_dhcpleases_configure. It is called in services_dnsmasq_configure."
This reverts commit 5f0b6a8f2aa3e5875188cd6720d037ef25503bca.
Remove redundant call to system_dhcpleases_configure. It is called in services_dnsmasq_configure.
Fixes #837. Fix the startup of dhcpleases during bootup. Also start the dhcpd service earlier there is not reason no to!
When booting up do not try to configure ovpn[c|s] interfaces if present also try to configure openvpn eariler just after the interfaces have been setup.
Fix comment to match what is actually doing.
Setup polling per interface rather only at bootup. This is a proper fix and a optimization on large interface cases. Also setup_microcode and polling defaults before configuring interfaces.
Use require_once here
Move all console related configuration items to config.console.inc. This will mean that these items are not included when the webConfigurator is being used and only on bootup on the console.
Save the old shutdown binary in an attempt to smooth a firmware upgrade that crosses to/from 32/64-bit.
Add an LED pattern function for assigning interfaces, and enable its use. When finished, switch back to the bootup pattern.
Merge branch 'master' of http://gitweb.pfsense.org/pfsense/mainline into mlppp
Conflicts: etc/inc/interfaces.inc etc/inc/pfsense-utils.inc
Fixes #374. Actually reload teh dhcpleases utility whenever the hosts files is regenerated to avoid problems.
Start sshd early on boot so it is availble as soon as the first ip is configured.
First steps for 3g serviceproviders support
o Move xml2array from rrd.inc to pfsense-utils.inc because it'll be used on non-rrd related placeso Add necessary require_once() calls to pfsense-utils.inc on places that are calling xml2array()o Add serviceproviders.xml, obtained from [1]...
Remove spurious call to mute console.
Add newline
Add missing ;
Add (C)ontinue option for the impatient
Re-create the hosts file on bootup after configuring all the interfaces. Ticket #567
Move this up in the boot sequence, the reset button check relies on its existence.
Add missing functions and move check earlier since this only checks on bootup
Add reset button support to alix/wrap. Obtained-from: m0n0wall
Ticket #295. Use empty to prevent some ghost entries in some configurations.
Make /var/run/booting exist for more of the actual booting process. Ticket #53.
Improve startup time by delaying dyndns synching.
Remove update_dns_cache.sh it seems to have been used for hostnames in the filter ruleset which now is handled quite differently.
Match conf_mount_rw with conf_mount_ro call.
Do not spread checking for value accross code. Do it in the function that is supposed to do it.
Remove test code.
Fix double include.
Add neccessary include.
Ticket #317. Synchronize user info on bootup.
Use the globals for minimum RAM warning, drop limit a little to accommodate 128 MB RAM systems
Adding script to parse dhcpd log file and populate /etc/hosts so that we can move to a newer dnsmasq. in addition, the current dnsmasq isc parsing is broken so there is not a choice to move either way. Ticket #79
Start syslogd after interfaces are configured. Ticket #196
Unbreak console lockout on bootup and in gitsync (pfSsh.php) Resolves #195
Do not show motd
Decouple filter.inc from functions.inc. There is no need to process filter functions most of the time. Include filter.inc where it is needed
Rework includes/require. This saves about 4 megabytes.Simplify get_memory(). Tested on mips/i386
Set booting to true.. not TRUE
Reviewed-by: scott@ and billm@
Create resolv.conf before loading rules. Resolves #21
Include functions.inc which will then include ipsec.inc
Unbreak IPSEC!