179 Commits

Author SHA1 Message Date
Franco Fichtner
5b77e24fa6 importer: issue with display when no ZFS is there 2022-01-07 10:45:34 +01:00
Ad Schellevis
9008f98a6a Interfaces / LTE - remove more or less dead cruft the 3gstats collects in some rare cases.
Although there probably are a couple of Huawei modems which do report status info as advertised in the script, there are also a lot who don't and maybe deadlocked when pulling for data on a "random" port.
For now we should remove this, if at some point in the future a sensible method would be supported to poll status in a more "vendor independent" manor, we can always revise.
2021-12-16 15:08:08 +01:00
Franco Fichtner
50d3f5e738 system: mostly adjust -z mode to give size and identifier from ZFS pools 2021-12-15 08:42:54 +01:00
Franco Fichtner
250ecd5bc4 system: opnsense-importer -m mode
Was in need of something like this to gain access to a ZFS pool without
having to run a command sequence from the top of my head.

Comes in pretty handy when being included from a recovery install stick.
2021-12-14 09:34:00 +01:00
Franco Fichtner
7767a6db9e firmware: for quick troubleshooting support -O like opnsense-update 2021-12-10 12:28:27 +01:00
Franco Fichtner
63408df158 system: improve opnsense-log a little 2021-11-23 08:30:00 +01:00
Franco Fichtner
731a69c6e6 system: add opnsense-log helper POC
Wanted to do this every now and then since people were not
familiar with clog but never got around to do it.  Now that
clog is gone it's easier to do so let's write a few lines
and extend as necessary.  :)

It looks like `tail -f' doesn't watch the symlink and instead
tails the target file which makes nightly rotation invisible
and the log starts stalling so it means for any readers of
latest.log it shouldn't be a persistent read.

PR: https://github.com/opnsense/core/issues/4993
2021-11-18 09:34:27 +01:00
Franco Fichtner
c4918b4c99 firmware: change CORE_ALTABI to taret ABI detection for #5144 2021-11-09 09:12:24 +01:00
Franco Fichtner
07d6658492 firmware: return ALTABI using -x #5144 2021-08-17 08:56:59 +02:00
Franco Fichtner
bf8604d9b8 plugins: widen error scope loosely related to #5061 2021-07-22 12:07:17 +02:00
Franco Fichtner
69c007ef07 rc: opnsense-beep melody database directory
An idea from the last refactoring: create a database directory
that holds the defaults as portable files with the ability to
invoke other user-created melodies as well as override the default
using ".local" suffix.
2021-07-07 07:59:25 +02:00
Franco Fichtner
83225cec36 shell: we cannot bootstrap an encrypted file; closes #4861 2021-06-21 14:59:13 +02:00
Franco Fichtner
253a888c26 installer: remove fluff 2021-04-19 14:19:04 +02:00
Franco Fichtner
cefe1069e4 installer: ok, one more ;) 2021-04-14 20:15:55 +02:00
Franco Fichtner
161523247e installer: avoid padding to make this look fresh 2021-04-14 08:55:02 +02:00
Franco Fichtner
f9dd232a39 installer: remove old workaround 2021-04-13 15:01:30 +02:00
Franco Fichtner
55e4e45dac installer: no longer requires this 2021-04-13 14:06:18 +02:00
Franco Fichtner
a08b8ec72b installer: switch installer package 2021-04-13 09:35:28 +02:00
Franco Fichtner
61ca8a7b68 pkg: add series and nickname to metadata 2021-04-09 08:56:46 +02:00
Franco Fichtner
9ae1359888 rc: whitespace in previous 2021-02-06 15:55:24 +01:00
Franco Fichtner
12637eb7f5 rc: let opnsense-version -c check package file existence 2021-02-05 13:26:43 +01:00
Franco Fichtner
1250318dc2 rc: add tiny manual page for opnsense-beep 2021-02-01 11:25:44 +01:00
Franco Fichtner
d7c86fa3cd rc: add two more beep variants 2021-02-01 10:18:39 +01:00
Franco Fichtner
9121ee88ce rc: refactor, add missing copyright header, rename
Scott committed this in 2005 so it is safe to assume the BSD
license fits...

See also: https://github.com/pfsense/pfsense/commit/fa94531eaba
2021-02-01 09:46:45 +01:00
Franco Fichtner
c1f839ef9d firmware: introduce non-core JSON metadata handling #4500 2021-01-16 09:47:04 +01:00
Franco Fichtner
cf609e2e6a src: small style update 2021-01-05 09:12:02 +01:00
Franco Fichtner
921b7c69f0 firmware: emulate -s for core package 2021-01-01 10:15:27 +01:00
Franco Fichtner
cf1f4e00b9 rc: support id in pluginctl -s mode
PR: https://forum.opnsense.org/index.php?topic=19240.0
2020-09-22 14:40:21 +02:00
Franco Fichtner
1960f9d84e rc: fix wrong double quotes 2020-09-05 18:37:56 +02:00
Franco Fichtner
21d7e26ba9 rc: directory exists after previous loop 2020-09-05 06:53:53 +02:00
Franco Fichtner
4f269f7cb0 rc: fix typo 2020-09-05 06:51:24 +02:00
Franco Fichtner
5301999708 rc: fix ssh key permissions on MSDOS import
PR: https://forum.opnsense.org/index.php?topic=18984.0
2020-09-04 23:18:33 +02:00
Franco Fichtner
7b6e7af079 importer: misaligned password reset 2020-05-15 10:19:08 +02:00
Franco Fichtner
e5eb7affb3 system: refactor beep.sh a little 2020-04-06 18:29:19 +02:00
Franco Fichtner
ae4a84ff5d plugins: for console use append a newline 2020-03-23 12:10:04 +01:00
Ad Schellevis
1e2cc4724a pluginctl: add -g to extract config.xml values, e.g. pluginctl -g system.firmware.plugins (https://github.com/opnsense/core/issues/1663) 2020-02-17 09:57:11 +01:00
Ad Schellevis
bb7557d38f pluginctl, add run mode, so we can execute things like "pluginctl -r return_gateways_status". easier to ask the user when debugging.
while looking into https://github.com/opnsense/core/issues/3759
2019-10-13 12:39:09 +02:00
Franco Fichtner
c83daaa54b sbin: usage print tweaks 2019-10-07 11:07:47 +02:00
Franco Fichtner
b2560c6eb4 services: split code to get rid of shallow services.inc #3736 2019-10-01 08:33:15 +02:00
Franco Fichtner
9c3cfc58c4 plugins: make pluginctl service restart verbose 2019-10-01 08:09:43 +02:00
Franco Fichtner
5868dda2cf services: remove services_get() by flattening it into plugins_services() 2019-09-30 07:27:43 +02:00
Ad Schellevis
d3323a82f8
CARP: optionally promote/demote on service status (#3656)
CARP: optionally promote/demote on service status event handler.

This adds /usr/local/etc/rc.carp_service_status.d/ to register service check scripts, which on failure exit are considered blocking for normal service operation.

A service should emit the following on status change, which in response might lead to change of carp status:

configctl interface update carp service_status

The included early script assures an initial demotion value before interface setup.

ref  https://github.com/opnsense/core/issues/3636
2019-08-18 19:54:05 +02:00
Ad Schellevis
df5a33381f pluginctl: explain what we are doing and prettify callflow a bit.
usage: pluginctl [-h] -[c] [-s] [arguments]

optional arguments:

	-h show this help text and exit
	-c configure mode (default), executes plugin [_configure] hook
	-s service mode (e.g. myservice restart)

	 without arguments, a list of plugins of the requested type is shown
2019-08-08 11:22:30 +02:00
Franco Fichtner
f772b4ef9a system: reduce diff vs. stable 2019-05-21 09:01:53 +02:00
Franco Fichtner
255e9b76b4 system: add pluginctl -s support
For legacy components route -s option through plugins_services()
to get a list of services that can be controlled like the GUI
controls.  E.g.:

    # pluginctl dhcpd [start|stop|restart]

PR: https://forum.opnsense.org/index.php?topic=12781.0
2019-05-20 21:05:10 +02:00
Franco Fichtner
e7aab795b7 system: list the commands for pluginctl when no argument is given 2019-05-09 09:54:16 +02:00
Franco Fichtner
04d4f50cca interfaces: separate dhcpd from services.inc 2019-04-28 15:07:10 +02:00
Franco Fichtner
8d0072e775 system: only use rrd where needed 2019-04-23 17:18:53 +02:00
Franco Fichtner
e1ec8980e4 importer: allow builtin password reset for new installer 2019-03-17 19:23:09 +01:00
Franco Fichtner
3582c206a7 system: remove obsolete bits for #3257 2019-03-10 08:54:13 +01:00