daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Jun 10th, 2011 262 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. DBFILENAME='/usr/share/opera-adblock-complete/urlfilter.ini'
  3. TMPFILENAME='/tmp/opera-adblock-urlfilter.ini'
  4.  
  5. modifyfilters(){
  6.         chown 777 $DBFILENAME
  7.         echo "#UsersOwnFiltersHere" > $DBFILENAME
  8.         if [ -f "$TMPFILENAME" ]; then
  9.                 cat $TMPFILENAME >> $DBFILENAME
  10.         fi
  11. }
  12. while true; do
  13.         read -p "Do you want to keep your own changes to urlfilers and give everyone rights to modify them? [Y/n] "
  14.         case $yn in
  15.                 [Yy]* ) modifyfilters; break;;
  16.         [Nn]* ) exit;;
  17.                 * ) echo "Please answer yes or no.";;
  18.         esac
  19. done
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