aeghn

Untitled

May 4th, 2020
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.56 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then
  4.   termite -t CHin_nmtui -e "nmtui" &
  5. fi
  6.  
  7. SSID_NAME=$(iwgetid -r)
  8.  
  9. # You can put any urgent name so the block will give warning
  10. # if a network with this name is used, like public wifi or alike.
  11. # You can separate multiple values with \|
  12. URGENT_VALUE=""
  13.  
  14. if [[ "${SSID_NAME}" != "" ]]; then
  15.   echo " ${SSID_NAME}"
  16.   echo " ${SSID_NAME}"
  17.  
  18.   if [[ "${URGENT_VALUE}" != "" ]] && [[ $(echo "${SSID_NAME}" | grep -we "${URGENT_VALUE}") != "" ]]; then
  19.     exit 33
  20.   fi
  21. else
  22.   echo " x"
  23.   echo " x"
  24. fi
Advertisement
Add Comment
Please, Sign In to add comment