Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

RuTorrent-access-swap.sh

osteth Apr 14th, 2016 (edited) 60 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. #!/bin/bash
  2.  
  3. # Title: color-bash.sh
  4. # Author: Seth Wahle
  5. # Contact: Seth [at] cyberdonix.com  Twitter: @SethWahle
  6. # comments:
  7. #requires two files called access_yes(containing access.ini opened configuration) and access_no(containing access.ini closed #configuration) to be present in the same folder as access.ini and this script
  8.  
  9. STR=$(cat access.ini | head -n1| cut -c4)
  10. GOOD=$(cat access_yes)
  11. BAD=$(cat access_no)
  12.  
  13. echo $STR
  14.  
  15. if [ $STR = 0 ]
  16. then
  17.         echo -e "\x1B[31m Access Opened \x1B[0m"
  18.         echo "$GOOD" > access.ini
  19. else
  20.         echo -e "\x1B[32m Access Closed \x1B[0m"
  21.         echo "$BAD" > access.ini
  22. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top