[PR] dylanaraps/neofetch#1055 from wget - Add OPNsense
Upstream PR: https://github.com/dylanaraps/neofetch/pull/1055 Thanks to @wget Co-authored-by: William Gathoye <william@gathoye.be>
This commit is contained in:
commit
40d2950278
1 changed files with 39 additions and 0 deletions
39
neofetch
39
neofetch
|
|
@ -1133,6 +1133,19 @@ get_distro() {
|
||||||
[[ -f /etc/trueos-lang ]] && distro=TrueOS
|
[[ -f /etc/trueos-lang ]] && distro=TrueOS
|
||||||
[[ -f /etc/pacbsd-release ]] && distro=PacBSD
|
[[ -f /etc/pacbsd-release ]] && distro=PacBSD
|
||||||
[[ -f /etc/hbsd-update.conf ]] && distro=HardenedBSD
|
[[ -f /etc/hbsd-update.conf ]] && distro=HardenedBSD
|
||||||
|
|
||||||
|
# /etc/pacbsd-release is an empty file
|
||||||
|
[[ -f "/etc/pacbsd-release" ]] && distro="PacBSD"
|
||||||
|
|
||||||
|
# For OPNsense
|
||||||
|
if [[ -f "/usr/local/opnsense/version/opnsense" ]]; then
|
||||||
|
case "$distro_shorthand" in
|
||||||
|
"on" | "tiny") distro="OPNsense" ;;
|
||||||
|
*)
|
||||||
|
distro=$(<"/usr/local/opnsense/version/opnsense")
|
||||||
|
distro="OPNsense ${distro%-*}"
|
||||||
|
esac
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -10003,6 +10016,32 @@ yM+ dM/+NNo` :Md +My
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"OPNsense"*)
|
||||||
|
set_colors 7 202
|
||||||
|
read -rd '' ascii_data <<'EOF'
|
||||||
|
${c1} .'''''''''''''''''''''''''''''''''''
|
||||||
|
oocc:::::::::::::::::::::::::::::::cox
|
||||||
|
;00; o0O
|
||||||
|
.,:' .;;;;;;;;;;;;;;;;;;;;;;;;;; ;:,
|
||||||
|
.',;;cxOOOOOOOOOOOOOOOOOOOOOOOkd:;;,..
|
||||||
|
.,cll:' ':llc,.
|
||||||
|
,;;:okxdxd: :dxdxko:;;,
|
||||||
|
.xxxx0XNNK0O. .O0KNNX0xxxx.
|
||||||
|
,${c2}cc:${c1},. .,${c2}:cc${c1},
|
||||||
|
........;${c2}ccc:${c1};. .;${c2}:ccc${c1};........
|
||||||
|
${c2}ccccccccccccccc ccccccccccccccc${c1}
|
||||||
|
........;${c2}ccc:${c1};. .;${c2}:ccc${c1};........
|
||||||
|
,${c2}cc:${c1},. .,${c2}:cc${c1},
|
||||||
|
.xxxx0XNNK0O. .O0KNNX0xxxx.
|
||||||
|
,;;:okxdxd: :dxdxko:;;,
|
||||||
|
.,cll:' ':llc,.
|
||||||
|
.,,;,ckOOOOOOOOOOOOOOOOOOOOOOOOx;,;,'.
|
||||||
|
.:l' ........................... ;:;
|
||||||
|
lOk' cdd
|
||||||
|
;lccccccccccccccccccccccccccccccccccc:.
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
|
|
||||||
"Oracle"*)
|
"Oracle"*)
|
||||||
set_colors 1 7 3
|
set_colors 1 7 3
|
||||||
read -rd '' ascii_data <<'EOF'
|
read -rd '' ascii_data <<'EOF'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue