Franco Fichtner
3778fee6d1
system: restructure previous a little
2023-10-18 14:18:28 +02:00
Franco Fichtner
1e86114a05
system: change wait time to 1 second per round in console
...
Sync both prompts to 7 seconds. It will reduce boot wait time
from 9 + 2.5 * 5 = 21.5 seconds to 7 + 7 = 14 seconds.
2023-10-17 11:10:00 +02:00
Ad Schellevis
c3c9beaebe
pluginctl - minor change to previous, only show plugin name instead of origin of the call.
2023-10-16 11:42:59 +02:00
Ad Schellevis
df54b2d0f6
pluginctl - improve listing plugins of selected type, this contains two modifications:
...
1] bugfix to show services on -s
2] when showing event hooks, also display the functions attached to it.
2023-10-16 11:19:42 +02:00
Franco Fichtner
c2fea3c9e3
system: extend pluginctl -4 to also return the interface name used for lookup
2023-09-19 08:06:56 +02:00
Franco Fichtner
2a6845a6fb
interfaces: tried keys before but list() is too dense
2023-09-18 10:52:40 +02:00
Franco Fichtner
db5c43d106
interfaces: allow clean MVC acces to primary address
...
POC for IPv4. Acme-client is being naughtly.
2023-09-18 10:18:34 +02:00
Franco Fichtner
4b69625a4a
pluginctl: allow -f mode to drop config properties; closes #6834
2023-09-08 09:26:30 +02:00
Franco Fichtner
b3c3b7a0c2
pluginctl: improve the print behavour for #6834
...
Now an empty node name '' will stay on the same node allowing to
dump the full config.xml for whatever reason. Also change the
empty print behaviour to omit the spurious newline as that looks
better. Last but not least pretty-print JSON for better UX.
2023-09-08 08:06:29 +02:00
Franco Fichtner
592c9a84df
system: fix typo
2023-07-24 09:56:46 +02:00
Franco Fichtner
136e403537
system: call opnsense-crypt from opnsense-import; closes #6133
...
Make sure the man page covers this subject to point people to it
later on. ;)
2023-07-24 09:53:36 +02:00
Franco Fichtner
dad8bd7543
system: add opnsense-crypt utility #6133
2023-07-24 09:38:13 +02:00
Franco Fichtner
efcc7fcffa
system: pluginctl -s batch mode like -S #6582
...
Refactor the code to take advantage of the -S behaviour and
also ditch the extra service_control_status() since already
fetched the status ourselves and it's used nowhere else.
2023-05-30 15:09:54 +02:00
Franco Fichtner
92d14dd4cd
interfaces: parse driver name from ifinfo, add pluginctl magic
2023-05-18 11:29:12 +02:00
Franco Fichtner
8beb293c53
pluginctl: add an ifconfig mode for easier debugging and later use
...
PR: https://forum.opnsense.org/index.php?topic=33864.0
2023-05-15 10:11:38 +02:00
Franco Fichtner
c9e78e2cd1
plugins: trailing whitespace
2023-03-22 21:41:32 +01:00
Franco Fichtner
4d2c1c2217
system: simplify dump, likely won't need plain boolean status #6376
...
It's easier to use but the MVC already runs on parsing for
"is running" so we don't have to change the world here and
introduce new things.
2023-03-15 09:24:05 +01:00
Franco Fichtner
179c6e4f37
system: fix service control bugs, dedup and oddities plus new #6376
...
service_name() and service_message() make this more usable. Also
add a status command for -s mode that emulates rc system output.
2023-03-15 09:06:43 +01:00
Franco Fichtner
0fc88f2d3d
system: yup yup #6376
...
Most likely this is backend material which needs to be filtered/
used to render page content and react on via formalized API request
in order to avoid leaking data.
The nice thing about the filtering is that we only ever have to look
up service status for matching services making the lookup faster.
2023-03-14 16:09:11 +01:00
Franco Fichtner
c56bb65762
system: small service list dump via pluginctl for #6376
...
We may have to fill out runtime information as well and filter
correctly just in case the API ever requires it as it's not a
lot of work.
2023-03-14 15:45:49 +01:00
Franco Fichtner
84f0bcdbdb
firmware: actually extract the subscription from the mirror #4881
...
We do not use it very often and almost all mandatory reads are done
via opnsense-update which figures this out differently.
2023-03-09 10:55:40 +01:00
Franco Fichtner
09b2bec389
pkg: remove CORE_FLAVOUR handling
2023-02-07 09:22:33 +01:00
Franco Fichtner
585311cedd
system: support tier here in core as well #5983
2023-01-18 15:07:12 +01:00
Franco Fichtner
ef11b7fc1f
system: closelog() -> syslog() trashes our main openlog()
...
So do a "reopenlog()" in the most convenient way (which is not very
convenient). Noticed while working on #6115
2022-11-04 12:22:02 +01:00
Franco Fichtner
c2a9ce8c26
plugins: $verbose argument in plugins_run() is spurious
...
plugins_run() was copied from plugins_configure() but since plugins_run()
already provides output and the only caller ignores the $verbose it is
better remvoed.
2022-10-20 12:54:04 +02:00
Franco Fichtner
471ae4b6bd
interfaces: protect against calling missing reconfiguration
2022-08-29 07:46:26 +02:00
Franco Fichtner
394d8e10f5
interfaces: flip 'names' arrays to merge 'assign' data
...
We can assign these from here when the name value is not null.
2022-08-28 13:44:48 +02:00
Franco Fichtner
39283ebf7c
interfaces: ifctl experiment is complete #5862
...
Since "nameserver.sh" was a working title for when we just wanted
to make sense of the nameserver registration mess going on this
no longer fully applies for good reasons.
Change the name to ifctl.sh for leaving syntax parsing in place
and leave the symlink in sbin/ directory. The same works nicely
for configctl.
2022-07-26 19:57:25 +02:00
Josh Soref
20a3c3da38
Spelling ( #5885 )
2022-07-18 13:59:03 +02:00
Franco Fichtner
8edb37042c
interfaces: remove inconsistencies regarding ping utility
2022-07-18 09:16:11 +02:00
Franco Fichtner
58d491b99c
system: once seems enough #5768
2022-07-12 15:31:20 +02:00
Franco Fichtner
5e9f7c2499
system: allow pluginctl -i to render interface changes #5768
2022-07-12 15:29:16 +02:00
Franco Fichtner
b8c6c18202
importer: zfs barfs on stdout when zfs pool uses unsupported features
2022-07-08 15:04:46 +02:00
Franco Fichtner
dd677931fa
system: fix firmware command shortcut
2022-07-05 08:37:05 +02:00
Franco Fichtner
b91257d7e7
pluginctl: newline shifted elsewhere already
2022-05-19 21:53:56 +02:00
Franco Fichtner
0e908f7b1c
pluginctl: fix copy+paste issue
2022-05-19 13:35:01 +02:00
Franco Fichtner
83a2d2feeb
interfaces: convert loopback for #5411
2022-05-19 11:06:08 +02:00
Franco Fichtner
0cbb2514b6
interfaces: plug vxlan into device population mechanism #5411
...
Adds pluginctl -d mode to list device types supported, their device
names and finally allows calling a device reconfiguration by name.
This is only the beginning of vlxan refactor.
2022-04-28 10:45:22 +02:00
Franco Fichtner
2606c471c5
importer: missing loop exit
2022-04-22 08:38:45 +02:00
Franco Fichtner
a507738bbd
importer: add verbose mode
2022-04-22 08:30:40 +02:00
Franco Fichtner
206f0d2f12
importer: support cd9660 type for #5733
2022-04-22 08:23:39 +02:00
Franco Fichtner
2d84691768
firmware: cross-version check not using correct information
2022-04-11 12:14:07 +02:00
Franco Fichtner
975b38c065
system: shorten markers, drop "growfs" suffix
2022-03-17 07:58:19 +01:00
Franco Fichtner
2d040c8968
system: configctl now a link like ifctl
...
So we should finally build manual pages for ifctl and configctl. ;)
2022-03-11 12:10:57 +01:00
Franco Fichtner
6446a4ccfa
interfaces: ifctl link for nameserver.sh
...
Not sure about nameserver.sh name and scope yet so try to
hide it under a link. We can always change the name later
although having .sh suffix helps us lint the script more easily.
2022-03-11 10:50:04 +01:00
Franco Fichtner
32fe53a228
system: try to hide "latest.log" magic in this utility
2022-03-09 11:00:19 +01:00
Franco Fichtner
61445fc13d
src: style issue with $((...)) use
2022-02-23 10:23:28 +01:00
Franco Fichtner
dd5f357f17
firmware: fix import listing for one ZFS pool
2022-01-25 10:28:08 +01:00
Franco Fichtner
fd778ae210
firmware: to pull off previous we need to support -l
2022-01-24 10:05:22 +01:00
Franco Fichtner
5b77e24fa6
importer: issue with display when no ZFS is there
2022-01-07 10:45:34 +01:00