Do most dependency checking during install instead of runtime

This commit is contained in:
Alexander Gehrke 2020-08-11 12:09:05 +02:00
parent f8d866b623
commit a2d794ea70
34 changed files with 74 additions and 27 deletions

11
misc/selfip Executable file
View file

@ -0,0 +1,11 @@
#!/bin/zsh
#dep:jq ip
if [[ $1 == "-h" || $1 == "--help" ]]; then
echo "Usage: selfip [target address]"
echo
echo " Prints own address used to access the given address"
echo " Defaults to 8.8.8.8, which will show the IP of the"
echo " interface used to access the internet"
exit 0
fi
ip -json route get ${1:-8.8.8.8} | jq -r '.[0].prefsrc'