Don't use pfsense name in comment
Use $product instead of pfSense when logging the version to syslog
Log pfsense version to syslog after bootup
Bring in proper gmirror support for the GUI and notifications.Made a general gmirror library to perform various gmirror tasks and get information, using some of the former widget logic to start. Updated widget to use this new code.Added a Diag > GEOM Mirrors page that displays information about existing mirrors and perform various management tasks. Current actions include rebuilding a drive, forgetting disconnected mirror drives, insert/remove, deactivate/activate, clearing medatada. It's now possible to use the GUI to rebuild a failed mirror by performing a forget, then insert action to replace a missing/dead drive....
Sometimes fsck requires a second run, teach rc script to call it more than once when it's necessary
Move clog from /usr to /usr/local
Unload the ZFS module if its not in use to not consume uselss memory
Use the FreeBSD script for ldconfig to catch all libs
Get rid of embedded platform. Its time to GC this
Remove TRIM_set and TRIM_unset support. This method isn't very elegant and isn't necessary in the long run. It's better handled in the installer stage and not after the fact.
fix typo
Add a setting to allow the user to specify the clog file size so more (or less) entries may be kept in the raw logs. Retain previous default size values if the user has not specified a preferred size. Files can only be resized when initialized, so provide a "Reset All Logs" button as well to force clear all logs and set them up at the new size.
Remove /var/run/booting early to be consistent with $g['booting']
Call all php scripts in bootup with fcgicli. For rc.bootup only the part needing input needs to be abstracted
Switch to php-fpm for lighty and check_reload_status will use it. Step by step will migrate the other calls
Fix #3113, fix multiple english spell errors s/seperet/separat/
Merge pull request #608 from evansus/master
Merge commit to correct debugging issue
correct debug issue
Accidentally changed this from executing the zfs command to echoing theexpected command in previous commits.This had been set while debugging a better command to set ZFSROOTvariable.
Merge pull request #602 from evansus/patch-1
ZFSROOT not hardcoded to zpool or dataset 'tank'
Do not force the check to avoid garbling filesystems. Also be specific to check / filesystem and /cf on nano platform since the others will be checked on php code
Use 'zfs mount' to get ZFSROOT dataset
using just zfs, grep, and cut, with a simple regexp
For ZFS root readonly case, the WHEREISROOT variable was grep-ing for 'tank', expecting a zpool with that name.
A workaround of naming a dataset 'tank', for example, 'sys/ROOT/tank' or 'sys/tank/pfSense' is compatible, however this shouldn't be hardcoded in....
Don't try to make /var/run a RAM disk if /var is already a RAM disk.
Only check tunefs status when it's necessary, it avoids errors on iso boot. Fixes #2932
Move tmp/var init to just after mount of /cf so that the sizing works properly on NanoBSD. Fix input validation for sizes. Add note about needing a reboot to apply the settings.
Add the ability for full installs to optionally use RAM disks for /tmp and /var, and to allow selecting a size for /tmp and /var RAM disks on both Full installs and NanoBSD.I think I caught most of the edge cases for transitioning into and out of RAM disk mode, and preserving data across reboots as is done on NanoBSD (RRD, DHCP leases, pkg/pbi info).
Add a means to force a fsck (on rare occasions the fs is not marked dirty, but still needs fsck run to fix errors)
Add a manual way for someone to set TRIM if they really want it. touch /root/TRIM_set and reboot to set, touch /root/TRIM_unset to clear.Have to reboot after setting the tunefs flag or when mount is run, it clears any changes. No way to do it on the fly.
Cleanup the php session data.
Create these dirs earlier rather than later to avoid the errors reported on http://forum.pfsense.org/index.php/topic,55998.0.html
Honor /var/run path specified in globals.inc. Probably this needs a bit better handling
Remove openvpn setups since they do not belong here. Also check before removing newsyslog.conf
Remove sasyncd related code from rc
Remove newsyslog.conf seems its responsible for overrideing ppp.log and gives warnings on bootup
Remove all previous configurations stored on /var/etc during a bootup to avoid confusion
More validation for ejecting CDrom devices for 3G sticks, needs extra manufacturers. Less typos in variable names also helps a lot.
Attempt to Eject the CD device on 3G sticks for Huawei and ZTE devices.
Move routing (radvd, routed, ospf, bgp) to its own log since these daemons can be really spammy at times.
Store PBIs in /root/var/db/pbi so they persist across reboots.Keep the existing code for old-style PKG packages in case users on 2.1 are doing anything with PKG packages by hand. In theory all proper package installs on pfSense 2.1 (FreeBSD 8.3) should use PBIs.
Move some of the log file tabs around.Add seperate tabs for dnsmasq,unbound as well as gateways.
Rather make use of grep -c than all these pipes
Simplify this code a little and make it easily extendible.
check for presense of file before trying to exec it
Do not wipe logs on reboot on full install
Add a small script to disable APM on ATA drives if they claim to support it. Leaving this on will kill drives long-term, especially laptop drives, by generating excessive Load Cycles.The APM bit set will persist until the drive is power cycled, so it's necessary to run on each boot to be sure.
Add missing s
Move hostapd to its own log and tab, so it stops spamming the system log.
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.
Run on CD-ROM, too, it should be writable after rc.cdrom
Sync password database right after mount, in case it is corrupt. (Except on CD-ROM platform).
Redirect errors to file
Remove nohup from the calling for check_reload_status since it may cause issues to the processes that get forked from it.
Add custom boot early hook
Remove extra unmatched conf_mount_ro for a potential race condition preventing writes when generating ssh keys in the background. Ticket #673
Set PKG_TMPDIR for embedded/nano because it will fill up /var trying to download packages otherwise. (From sullrich)
Run dumpon earlier, split dumpon/ddb from savecore and run savecore later.
Add support for dumpon/savecore to run on full installs.
Whitespace fix
Be less chatty
Use fullpath
Run ecl through php instead of executing directly.
Add pfSsh.php externalconfiglocator playback script
Adding external configuration loader which will look on all found disks except bootup disk for config.xml. If tconfig.xml is found on an external disk then it tests the roobobj to ensure its a valid file then calls test_config() to ensure it is a valid xml file. Once the file is validated a backup_config() is called to backup the current configuration and finally the file is installed using restore_backup()
Bring interfaces up only if there is a mismatch to allow them to be reassigned.
Protect from strange situations on bootup by testing for is_array(). Do not add anymore the 127.0.0.2 route its not needed anymore. Also during bootup bring up all interfaces so the assignment process can deal with them(Possibly should be done in another code flow!).
More VPN log fixes, for consistency. Ticket #912
Update (C)
Ensure /etc/gettytab is of a sane size and restore from backup + log if it is not
Do not suck in the file but actually execute it.
Correct typo in file name. Also do not delete users just expire them.
Start-up first check_reload_status than call rc.bootup since this is the new world order. This unbreaks booting and removes spurious messages during boot. While here for all binaries use full path for correctnes and avoid any 'strange' issues.
Use the new events mechanisms to dispatch events.
Only do check on pfSense platform
Only process items if we can find grep
Handle ZFS root partition read-only cases
Do not setup unionfs for /PCBSD
add apinger.log here too to silence error at boot
Do not nuke /tmp/ on livecd's
Make sure to cleanup /tmp before using it. Solves config cache issue as a start.
Remove stale code.
Make installer unionfs
Remove unionfs /, will have to come up with a new plan
Use unionfs for /
Remove stray done
Do not fsck /cf on each bootup
Unbreak nanobsd since Ticket #444
Unbreak nano since ticket #444
Handle mounting of extra filesystems correctly. Ticket #444
move mount up for cases where /usr and other partitions may be separate, and needed for other things to function
Make /var/run/booting exist for more of the actual booting process. Ticket #53.
Revert last commit .. This might not work on Nano
Use mount -a instead of -uw Ticket #444
Fix file names.
Use the -s ident option of mpd to send the logs for the PPPoE/PPTP/L2TP servers to syslogs appropriate files. Create the files for these vpn's as for the others. Logs can be viewed in the VPN tab of the system log.
Add alias data url option. This code existed but lacked a backend daemon to update the data every 24 hours. Adding this as well.
Add PPP logging tab
Revert "Use php to detect product name on shell scripts"
This reverts commit 07881462254d007cf77c1a5b09e7a840f708657e.
Do not create /root/var/tmp
Only symlink pkg dir
Reverse link arguments and rm dir