1301 Commits

Author SHA1 Message Date
Ad Schellevis
5819684b56 (ids) add script to merge user defined presets and installed rules 2015-06-22 21:05:14 +02:00
Franco Fichtner
1454f5daf3 src: style and whitespace sweep 2015-06-16 10:16:52 +02:00
Franco Fichtner
2fd0bf3b24 firmware: minor style updates 2015-06-15 14:07:29 +02:00
Ad Schellevis
775ffffb26 (ids) add reference data to backend scripts 2015-06-12 16:16:26 +02:00
Franco Fichtner
64f3020ae8 python: for FreeBSD 10, this may fail
Originally introduced by me based on high hopes and cross-platform
usage.  I was wrong.

A PATH without /usr/local/(s)bin, as advertised by the standard rc(8)
system or service(8) will prevent env(1) from working properly.  We've
had similar fun with configd before.  Maybe we need to take this to FreeBSD.
For now we work around it like every body else, presumably.  :)
2015-06-12 09:21:56 +02:00
Franco Fichtner
77c89600c6 src: whitespace sweep 2015-06-12 08:23:36 +02:00
Ad Schellevis
101101fa94 (ids) add suricata scripts to list registered classtypes 2015-06-11 18:55:03 +02:00
Ad Schellevis
96bcf07692 (ids) update search installed rules 2015-06-11 14:06:02 +02:00
Franco Fichtner
422303626e firmware: almost always avoid writing json file for updates
This was leaking spurious json output sometimes, confusing
the firmware pages and its users.
2015-06-10 10:12:37 +02:00
Franco Fichtner
f0c9c1ca1e src: some cleanups 2015-06-10 08:20:43 +02:00
Ad Schellevis
c7371f04e6 (ids) refactor installed rulecache to use sqlite3 and add query options as parameter calls 2015-06-09 21:51:26 +02:00
Ad Schellevis
952e010b9d (ids) add some backend scripting, work in progress 2015-06-08 15:25:28 +00:00
Franco Fichtner
4d101e7cab firmware: folded message into opnsense-update(8) 2015-06-08 10:55:29 +02:00
Franco Fichtner
efea84d948 firmware: fold package updates into opnsense-update(8) 2015-06-08 09:52:58 +02:00
Franco Fichtner
252a9a1384 src: /var/log/dmesg.boot is a lie; whitespace sweep 2015-05-19 10:47:31 +02:00
Ad Schellevis
fd6c5101de (firmware) add check for reboot to check update script 2015-05-19 08:07:55 +00:00
Franco Fichtner
8cefe40920 src: whitespace sweep 2015-05-18 16:49:20 +02:00
Ad Schellevis
4f728e3856 (firmware) make reboot required on base upgrade 2015-05-15 17:06:32 +00:00
Ad Schellevis
fdaa98cd4c (firmware) echo json status data on update check 2015-05-15 15:44:49 +00:00
Franco Fichtner
e40c87ca6a firmware: also clean downloaded packages after install 2015-05-04 10:35:57 +02:00
Franco Fichtner
0b15d1b669 firmware: disable kernel/base update for now #137 2015-04-12 12:32:11 +02:00
Franco Fichtner
6e08824c40 firmware: repair the damage done
Base/kernel upgrade basically works.  I am not sure if we should
immediately trigger the reboot in this case.  OTOH, some might
ignore the obvious reason to boot the new kernel that had just
been aqcuired.  At least it's stable now and not easily killable
through the GUI reload anymore.  :)
2015-04-11 22:12:31 +02:00
Franco Fichtner
915f04b38a firmware: embed the base system upgrade into the GUI flow 2015-04-11 06:48:45 +02:00
Ad Schellevis
d7d1a07ab5 cleanup configd usage 2015-04-07 20:29:06 +00:00
Franco Fichtner
1fd22b658e firmware: polish the upgrade script 2015-04-01 11:38:08 +02:00
Franco Fichtner
fe6bb22f6c src: whitespace sweep 2015-03-24 08:02:23 +01:00
Ad Schellevis
7f23acc905 forgot to add backup script 2015-03-23 18:32:38 +00:00
Franco Fichtner
9cd2b8857d rc/inc: regenerate the php.ini files in a more maintainable place 2015-03-09 09:23:11 +01:00
Franco Fichtner
170f72e09b firmware: restart the web server from here as well 2015-03-05 16:56:27 +01:00
Franco Fichtner
797b0e64b8 src: migrate the version file to a new home
We now use /usr/local/opnsense/version/xxx as our version database.
Apart from the core package, opnsense-update(8) also puts its own
version information in there.  To stay somewhat consistent, the
version file should resemble the package name, even though that
looks strange in our case: /usr/local/opnsense/version/opnsense.
It's just that /usr/local/etc is too open and might clash with
other things in the future.
2015-03-02 09:08:44 +01:00
Franco Fichtner
a273c30544 firmware: rework the update script
* Add pkg autoremove for stale package removal.
* Refactor progress file output in case it'll change.
* Truncate the progress file directly on startup.

Unfortunately, that doesn't solve the lingering of upgrade
info after navigating away from the firmware page.  Need to
find a better solution here...
2015-01-23 23:08:03 +01:00
Jos Schellevis
4f8cea3719 Firmware update enhancements and System GUI pages cleanup 2015-01-23 14:49:49 +00:00
Franco Fichtner
90bae8e7e3 firmware: regenerate php.ini after an upgrade
PHP plugins may change and then clobber the custom php.ini we have
previously generated.  To make sure everything keeps running smoothly,
always regerate it directly after an upgrade, even though there may
have been no changes.
2015-01-16 14:11:04 +01:00
Jos Schellevis
4e0b972a94 Firmware upgrade fix pkg only upgarde issue 2015-01-16 10:48:55 +00:00
Jos Schellevis
da4675cb4a Upgrade for firmware upgrade add check for pkg package and change scripting to allow sinlge package upgrade, also fixes #27 2015-01-13 11:02:07 +00:00
Jos Schellevis
e52ff000a5 do not run updatecheck in background after upgrade 2014-12-29 15:35:20 +00:00
Jos Schellevis
753bb32ea3 And more upgrade stuff... 2014-12-29 15:31:31 +00:00
Jos Schellevis
971a7c506c More upgrade enhancements 2014-12-29 15:24:14 +00:00
Franco Fichtner
69b290dd6e opnsense: apply whitespace changes
*runs for cover in fear of Ad's uncommited changes*
2014-12-28 20:02:23 +01:00
Charlie Root
eb136be2ad Small fix for background process pkg_upgrade 2014-12-23 11:47:16 +00:00
Charlie Root
a2e63b70aa Firmware upgrade is now fully functional 2014-12-23 11:37:27 +00:00
Jos Schellevis
814ee48878 upgrade script enahncements and now temporary in test mode 2014-12-23 07:35:20 +00:00
Jos Schellevis
8f531b11e6 Firwmare upgrade should now work 2014-12-22 16:58:14 +00:00
Jos Schellevis
506ae138aa Firmware upgrade changes 2014-12-22 16:29:05 +00:00
Jos Schellevis
9db11ae07e Removed non-functional and insecure features and swapped lan_wan assiment 2014-12-22 11:41:32 +00:00
Jos Schellevis
e40a28951e Finalized System Information widget and pkg_updatecheck now updates version file when run 2014-12-19 16:04:05 +00:00
Jos Schellevis
e6eb5c60f6 Even more updates on upgrade checking.. now with configurable timeout 2014-12-19 13:59:01 +00:00
Jos Schellevis
51758409bf WIP cleanup system information widget and us json with ajax calls... so much nicer 2014-12-18 16:00:30 +00:00
Jos Schellevis
84684f0869 Reworked script to check for new and upgraded packages, out is now in one json structured file 2014-12-18 10:33:06 +00:00
Jos Schellevis
46851d01f7 Check for updates, still need ro enable cronjob 2014-12-17 13:50:08 +00:00