Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
185 B

4 years ago
  1. #! /bin/sh
  2. if [[ $(cat /sys/class/net/wlp*/operstate) == "up" ]]; then
  3. echo " WiFi "
  4. else
  5. ping -c 1 google.com
  6. if [[ $? == 0 ]]; then
  7. echo "Eth"
  8. else
  9. " "
  10. fi
  11. fi