mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
added /usr/etc /usr/local/etc tests for config
This commit is contained in:
parent
3b1dc1937a
commit
de24236606
4
pinxi
4
pinxi
|
@ -1171,6 +1171,10 @@ sub set {
|
|||
@config_files = (
|
||||
qq(/etc/$self_name.conf),
|
||||
qq(/etc/$self_name.d/$self_name.conf),
|
||||
qq(/usr/etc/$self_name.conf),
|
||||
qq(/usr/etc/$self_name.d/$self_name.conf),
|
||||
qq(/usr/local/etc/$self_name.conf),
|
||||
qq(/usr/local/etc/$self_name.d/$self_name.conf),
|
||||
qq($user_config_dir/$self_name.conf)
|
||||
);
|
||||
# Config files should be passed in an array as a param to this function.
|
||||
|
|
6
pinxi.1
6
pinxi.1
|
@ -15,7 +15,7 @@
|
|||
.\" with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
.\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
.\"
|
||||
.TH INXI 1 "2023\-12\-12" "inxi" "inxi manual"
|
||||
.TH INXI 1 "2023\-12\-15" "inxi" "inxi manual"
|
||||
|
||||
.SH NAME
|
||||
inxi \- Command line system information script for console and IRC
|
||||
|
@ -2977,6 +2977,10 @@ override some global configuration items from the package's default
|
|||
\fB/etc/inxi.conf\fR file but don't want to lose your changes on a package
|
||||
update.
|
||||
|
||||
In case the distro is using either \fB/usr/etc\fR or \fB/usr/local/etc\fR as non
|
||||
core tool default location, inxi will use those paths instead, with the
|
||||
\fBinxi.d/inxi.conf\fR override option.
|
||||
|
||||
You can also override, per user, with a user configuration file found in one of
|
||||
the following locations (inxi will store its config file using the following
|
||||
precedence):
|
||||
|
|
Loading…
Reference in a new issue