Conky app select internet device

pull/198/head
Botspot 4 years ago
parent fb08b65cb6
commit 9464cd9d43

@ -13,6 +13,13 @@ function error {
#example below:
wget -O ~/.conkyrc https://raw.githubusercontent.com/Botspot/rpi_conky/master/conkyrc || error 'Failed to download conkyrc!!'
#change eth0 to wlan0 in conky config if user is currently using WiFi
interface="$(ip addr | awk '/state UP/ {print $2}' | tr -d ':' | head -n 1)"
if [ ! -z "$interface" ];then
sed -i "s/eth0/$interface/g" ~/.conkyrc
fi
# Get dependencies
"${DIRECTORY}/pkg-install" "conky" "$(dirname "$0")" || exit 1

Loading…
Cancel
Save