mirror of
https://github.com/hak8or/proxmox_scripts.git
synced 2025-01-15 11:57:57 +00:00
a
This commit is contained in:
parent
e978cfc9bf
commit
61fa7abbf2
@ -60,16 +60,20 @@ cd ~/tmp
|
|||||||
# ----------- package query for yaourt -----------
|
# ----------- package query for yaourt -----------
|
||||||
git clone https://aur.archlinux.org/package-query.git
|
git clone https://aur.archlinux.org/package-query.git
|
||||||
cd package-query
|
cd package-query
|
||||||
makepkg -si
|
makepkg -si --noconfirm
|
||||||
cd ..
|
cd ..
|
||||||
# ----------- yaourt itself -----------
|
# ----------- yaourt itself -----------
|
||||||
git clone https://aur.archlinux.org/yaourt.git
|
git clone https://aur.archlinux.org/yaourt.git
|
||||||
cd yaourt
|
cd yaourt
|
||||||
makepkg -si
|
makepkg -si --noconfirm
|
||||||
cd ..
|
cd ..
|
||||||
|
# Wipe tmp dir
|
||||||
cd ..
|
cd ..
|
||||||
rm -r -f ~/tmp
|
rm -r -f ~/tmp
|
||||||
|
|
||||||
# And say what the IP address is to the terminal.
|
# Get the ip addresses using some grep and awk magic.
|
||||||
cowsay "All Done!IP Address information: $(ip addr show)"
|
ipv6addr=$(ip -6 addr show eth0 | grep /128 | grep -v fd75 | awk '{a=$2; split(a, b, "/"); print b[1]}')
|
||||||
|
ipv4addr=$(ip -4 addr show eth0 | grep inet | awk '{a=$2; split(a, b, "/"); print b[1]}')
|
||||||
|
|
||||||
|
# And say what the IP address is to the terminal.
|
||||||
|
cowsay "All Done! $ipv4addr $ipv6addr"
|
||||||
|
Loading…
Reference in New Issue
Block a user