205 Commits

Author SHA1 Message Date
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
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