Advertisement
opexxx

sid.sh

Mar 31st, 2015
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. #!/bin/bash
  2.   if [ -e ~/.sidd ]; then
  3.   /sbin/iwconfig wlan0 | /sbin/iwconfig wlan0 | grep ESSID |cut -c 31-43 > .sidd
  4.   else
  5.   touch ~/.sidd
  6.   /sbin/iwconfig wlan0 | /sbin/iwconfig wlan0 | grep ESSID |cut -c 31-43 > .sidd
  7.   fi
  8.  if [ "$(cat .sidd)" = "" ]; then
  9.  echo "Nicht verbundeno!"
  10.  else
  11.  cat .sidd |  sed 's/ID:"//'
  12.  fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement