147 Commits

Author SHA1 Message Date
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
Franco Fichtner
69ff2fa8ad system: move opnsense-auth to libexec
... but keep a symlink for backwards compatibility
2019-02-27 01:26:15 +01:00
Franco Fichtner
75c3100ba7 interfaces: move mpd.script to scripts dir
mpd5 is started with -d /var/etc so it expects mpd.script to be there.
Some small simplifications along the way.
2019-02-25 08:23:50 +01:00
Franco Fichtner
cfc95122f2 interfaces: move ppp-related scripts to proper location
sbin/ is for console-bound binaries.
2019-02-25 08:23:50 +01:00
Franco Fichtner
38be942639 firmware: move duty to return the correct name/id to opnsense-version
To be fixed there eventually without a stale note attached.
2019-02-25 08:16:21 +01:00
Ad Schellevis
0793375e3f Authentication/pam, initial (working) version to move already implemented pam services into our framework. for https://github.com/opnsense/core/issues/3242 2019-02-18 22:03:50 +01:00
Franco Fichtner
654d6221da interfaces: change indent in previous 2019-01-30 21:16:21 +01:00
Ad Schellevis
b154c3bee4 mpd, add Pin options to ModemIdentCustom. closes https://github.com/opnsense/core/issues/3164 2019-01-30 17:58:57 +01:00
Franco Fichtner
972c3aa2c6 firmware: fix previous 2019-01-30 08:28:13 +01:00
Franco Fichtner
b8116f8193 firmware: kernel / base version files no longer append architecture 2019-01-30 08:23:40 +01:00
Franco Fichtner
2b265279e5 src: change all instances to "comma-separated" 2019-01-06 15:04:28 +01:00
Michael Steenbeek
1708d13076 Remove redundant closing tags 2019-01-03 14:58:19 +01:00
Franco Fichtner
4cef794d42 installer: find all possible configs and include them
Sooner or later we will remove custom configs and this is in the
way of simply zapping a file by statically including it.
2018-12-28 08:05:52 +01:00
Franco Fichtner
60ccde58af importer: wrong language 2018-12-27 18:23:09 +01:00
Franco Fichtner
0b551b34d3 importer: make current zpool visible, but immune to import
This is for consistency with hard disk device visibility as it
could be mounted / active.  While here, stop cleaning up MNT as
it is only a directory in /tmp that should cause issues...
2018-12-27 18:19:06 +01:00
Franco Fichtner
c95c82cb87 firmware: rework opnsense-version again 2018-11-29 08:22:50 +00:00
Franco Fichtner
7f4f0821eb firmware: to ease transition sanitise version 2018-11-28 13:51:13 +00:00
Franco Fichtner
d37a1410c8 firmware: support architecture as well 2018-11-28 13:45:25 +00:00
Franco Fichtner
43b513ec7b firmware: fixup previous, we parsed twice 2018-11-28 09:38:54 +00:00
Franco Fichtner
0eb1f10095 firmware: rename "opnsense" version file to "core"
We already have "kernel" and "base" and plugins also follow this
pattern by only registering its name once per devel or release
version.  This kills ambiguity for "opnsense" vs. "opnsense-version"
and makes it more branding friendly.  Suffice to say "core", "kernel"
and "base" are reserved names and also align with tools.git.
2018-11-28 09:30:09 +01:00
Franco Fichtner
4e5d3b6ccc firmware: usual whitepsace noise 2018-11-28 09:16:09 +01:00
Franco Fichtner
16088285d8 firmware: allow size or version read from other components 2018-11-28 09:15:00 +01:00
Franco Fichtner
245401492b importer: make clear that /conf/config.xml is required 2018-11-20 18:44:02 +01:00
Franco Fichtner
a7dbe83957 version: improved crypto flavour reading
product_flavour is embedded in the release package but the
package itself does not insist on a particular flavour other
than having knowledge about the flavour the package was
built for originally.  This is ok and direct crypto deps
seem to have failed to produce reliable upgrade / sidegrade
results in recent tests anyway.

Long story short: find out the real crypto flavour installed
from the OpenSSL binary or fall back to the metadata if said
binary cannot be found.
2018-09-26 20:30:45 +02:00
Franco Fichtner
ba7163a01b rc: last optimisation pass for opnsense-version 2018-09-17 07:50:33 +02:00
Franco Fichtner
d7a6e9c8bb rc: tweak opnsense-version to return custom string combinations 2018-09-17 07:49:47 +02:00
Franco Fichtner
8fcda9f8aa firmware: make firmware-upgrade the version file 2018-09-16 23:15:55 +02:00
Franco Fichtner
0cf4fe5e38 rc: hello opnsense-version! 2018-09-16 23:07:21 +02:00
Franco Fichtner
f811f9723f rc: explicity tell to unload
Otherwise we try to unload when it's there.  Logic was
correct but -b assumtion was incorrect as we do not touch
drivers there or require any pool listing.
2018-09-08 12:06:54 +02:00
Franco Fichtner
51d324013e importer: loop until successful or otherwise aborted
DO_DEV aborts directly after the attempt.  DO_BOOT takes priority.
2018-09-08 11:58:23 +02:00
Franco Fichtner
7745e25236 rc: actually parse -z option 2018-09-08 11:00:40 +02:00
Franco Fichtner
32596c4485 rc: work on importer to simplify and list ZFS pools as stand-alone 2018-09-08 10:04:43 +02:00
Franco Fichtner
2935f5689a importer: tweak previous, first pass
/dev/zfs/pool does not exist so we can do a "zfs/pool" input
in alignment with gmirror and graid inputs.  Move the probing
after zfs load to be able to unload again also.
2018-09-02 17:16:11 +02:00