Merge pull request #1054 from wget/add-proxmoxve

Add Proxmox VE
This commit is contained in:
dylan 2019-10-18 05:25:11 +00:00 committed by GitHub
commit 3b3c28cbe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 34 additions and 0 deletions

View File

@ -868,6 +868,14 @@ get_distro() {
"on" | "tiny") distro="Siduction" ;; "on" | "tiny") distro="Siduction" ;;
*) distro="Siduction ($(lsb_release -sic))" *) distro="Siduction ($(lsb_release -sic))"
esac esac
elif type -p pveversion >/dev/null; then
case "$distro_shorthand" in
"on" | "tiny") distro="Proxmox VE" ;;
*)
distro="$(pveversion)"
distro="${distro#pve-manager/}"
distro="Proxmox VE ${distro%/*}"
esac
elif type -p lsb_release >/dev/null; then elif type -p lsb_release >/dev/null; then
case "$distro_shorthand" in case "$distro_shorthand" in
@ -8173,6 +8181,32 @@ ${c1} /\\
EOF EOF
;; ;;
"Proxmox"*)
set_colors 7 202
read -rd '' ascii_data <<'EOF'
${c1} .://:` `://:.
`hMMMMMMd/ /dMMMMMMh`
`sMMMMMMMd: :mMMMMMMMs`
${c2}`-/+oo+/:${c1}`.yMMMMMMMh- -hMMMMMMMy.`${c2}:/+oo+/-`
`:oooooooo/${c1}`-hMMMMMMMyyMMMMMMMh-`${c2}/oooooooo:`
`/oooooooo:${c1}`:mMMMMMMMMMMMMm:`${c2}:oooooooo/`
./ooooooo+-${c1} +NMMMMMMMMN+ ${c2}-+ooooooo/.
.+ooooooo+-${c1}`oNMMMMNo`${c2}-+ooooooo+.
-+ooooooo/.${c1}`sMMs`${c2}./ooooooo+-
:oooooooo/${c1}`..`${c2}/oooooooo:
:oooooooo/`${c1}..${c2}`/oooooooo:
-+ooooooo/.`${c1}sMMs${c2}`./ooooooo+-
.+ooooooo+-`${c1}oNMMMMNo${c2}`-+ooooooo+.
./ooooooo+-${c1} +NMMMMMMMMN+ ${c2}-+ooooooo/.
`/oooooooo:`${c1}:mMMMMMMMMMMMMm:${c2}`:oooooooo/`
`:oooooooo/`${c1}-hMMMMMMMyyMMMMMMMh-${c2}`/oooooooo:`
`-/+oo+/:`${c1}.yMMMMMMMh- -hMMMMMMMy.${c2}`:/+oo+/-`
${c1} `sMMMMMMMm: :dMMMMMMMs`
`hMMMMMMd/ /dMMMMMMh`
`://:` `://:`
EOF
;;
"Puppy"* | "Quirky Werewolf"* | "Precise Puppy"*) "Puppy"* | "Quirky Werewolf"* | "Precise Puppy"*)
set_colors 4 7 set_colors 4 7
read -rd '' ascii_data <<'EOF' read -rd '' ascii_data <<'EOF'