Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- DBFILENAME='/usr/share/opera-adblock-complete/urlfilter.ini'
- TMPFILENAME='/tmp/opera-adblock-urlfilter.ini'
- modifyfilters(){
- chown 777 $DBFILENAME
- echo "#UsersOwnFiltersHere" > $DBFILENAME
- if [ -f "$TMPFILENAME" ]; then
- cat $TMPFILENAME >> $DBFILENAME
- fi
- }
- while true; do
- read -p "Do you want to keep your own changes to urlfilers and give everyone rights to modify them? [Y/n] "
- case $yn in
- [Yy]* ) modifyfilters; break;;
- [Nn]* ) exit;;
- * ) echo "Please answer yes or no.";;
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement