#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Changelog: # ------------------------------------------------------------------------------------------ # Build 1.0 04/15 Apr 2015 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # # Known Issues: # ------------------------------------------------------------------------------------------ # Host file does not get created correctly. # # Init Release # # ------------------------------------------------------------------------------------------ # Build 2.0 03/16 Mar 2016 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # # Known Issues: # ------------------------------------------------------------------------------------------ # None. # # Bump up to version 2.0, because of the amount of changes # # New: # # Added -- Automated folder creator # Added -- Automate download host file remotely for my server # Added -- Cron support, automate it will re-run script once a month # Added -- Cleanup code # Added -- Console echoing # Added -- Automate startup nvram script, append # Added -- Commented code throughout # # Fixed: # # - bad host file creation. # - code layout # ------------------------------------------------------------------------------------------ # Build 3.0 03/31 Mar 2016 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # # Known Issues: # ------------------------------------------------------------------------------------------ # None. # # Bump up to version 3.0, because of the amount of changes # # New: # # Added -- Cleanup code # Added -- Console echoing # Added -- Commented code throughout # Added -- jffs creation if not enabled # Added -- error log reports, to help users indentify what went wrong # # Fixed: # # - bad host file creation. again. missing folder path in beginning of case script section # - code layout # - bad curl path # - missing quotes on startup appended variable # - jffs variable names # - case sub-script run, it now detects whichever mount you selected in installation mode. working properly # - variable issues in case script sub-section. # - cron detection issue's. fixed somewhat, still having issue's with the grep command # ------------------------------------------------------------------------------------------ # Build 4.0 04/12 April 2016 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # # Known Issues: # ------------------------------------------------------------------------------------------ # None. # # Bump up to version 4.0, because of the amount of changes # # New: # # Added -- Cleanup code # Added -- Commented more code throughout # Added -- installation script code # Added -- Remotely retreive code files from webserver. safer # Added -- Configuration file, to keep all script settings in one file # # Fixed: # # - code layout # - reworked entire folder detection and creation system code. # - issue with reading paths in configuration file including source command # ------------------------------------------------------------------------------------------ # Build 4.0.1 04/22 April 2016 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # # Known Issues: # ------------------------------------------------------------------------------------------ # Added some minor enchancements. # # This will probably be last revision, unless i think of some more code to optimize script. # # New: # # Added -- Cleanup code # Added -- Console echoing # Added -- Changelog file # Added -- Commented more code throughout # Added -- Readme.txt file to give users a general walk-thru of script. # Added -- Removed title screen from main script file to it's own file, and then call it as a variable when needed. # # Fixed: # # - better code support on downloading multiple files via webserver. more effiecient # - optimized script to run smoother with less appending errors. # - fixed missing ; on bracket statements # - condensed code, made it smaller, less redundant code # - default folder path creation # ------------------------------------------------------------------------------------------ # Build 4.1 06/1 June 2016 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # # Known Issues: # ------------------------------------------------------------------------------------------ # Added some minor enchancements. # # New: # # Added -- Cleanup code # Added -- Commented more code throughout # Added -- Ping webserver code, check to see if webserver is online or offline # Added -- Run program off of install.sh file, there is a option to run it or just to exit and run manually. # Added -- Color variables to config file # Added -- Function code for host conversion, we can call it at anytime now. # Added -- Better ERROR code support throughout # Added -- Additional folders to keep function files organized. # Added -- Fnc_xfer added a conditional fallback command if failed. # Added -- Functions.sh file to keep all fnc commnads seperatly from main code. can call it anytime now # Added -- Colors.sh file to keep all color variables seperatly from main code. can call it anytime now # Added -- Additional source callups for the new files created, functions.sh colors.sh # Added -- Case syntax was overhauled. now you must use e.g. -s or --start to run certain syntax commands # Added -- Better syntaxing throughout, much more effiecient calling errors and help. # Added -- More color commands, help with seeing error's much more effieciently. # # Fixed: # # - optimized script to run smoother with less appending errors. # - fixed missing ; on bracket statements # - function code for fnc_url, issue's with pinging from remote sites. Now this way we dont need to worry. # - removed color variables from config.file and instead created a script file to call it at any time. # - strings.sh file, removed spaces script was complaining and throwing errors # - ping commnad code is now fixed, will work for local and remote servers. # - mkdir -p switch was added to fix subdir creation issues. # - commited path=$(echo $path | sed 's:/*$::') remove trailing / at end of path of nvram get static_path. this corrected double // path issues. # ------------------------------------------------------------------------------------------ # Build 4.2 07/01 July 2016 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # # Known Issues: # ------------------------------------------------------------------------------------------ # Bump up to version 4.2, because of the amount of changes # # # New: # # Added -- Updated script to version 4.2 # Added -- Cleanup code # Added -- Console echoing # Added -- Check if there is another instance running before running script. # Added -- Function cleanup, to remove the LOCKDIR when program is finished. # Added -- VER=$VER in config.file instead of manually entering version number after every update. # Added -- Backup hosts file question # Added -- Verify check on hosts file to see if it has been modified or at a default state # Added -- Selection to default your hosts file or continue using it modified. More flexible for end user # Added -- Count how many lines there are in a hosts file by default, should be 2 or less. anything more would result in a modified hosts file. # Added -- Commented more code throughout # Added -- Script dependency check # Added -- More warning code lines throughout # # Fixed: # # - fnc_xfer function script now has a error exit code when it fails to reach the webserver. # ------------------------------------------------------------------------------------------ # Build 4.3 07/16 July 2016 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # # Known Issues: # ------------------------------------------------------------------------------------------ # # # New: # # Added -- Updated script to version 4.3 # Added -- Re-worked the local / remote option flag. much more reliable this way to detect. # Added -- Re-worked on how to get files downloaded from webserver at a faster and much more reliable state. I totally re-coded this area. # Added -- Cleanup code, removed some redudant code throughout. # Added -- Console echoing # Added -- Check if there is another instance running before running script. # Added -- install.sh > added option to select if you want to enable block on windows update service manager # Added -- install.sh > re-wroked some function statements to reflect new change above. # Added -- functions.sh > added new function statement for windows update service manage block # Added -- functions.sh > added new function to merge both update.txt and hosts file together # Added -- functions.sh > added new count how many hosts are being block # Added -- functions.sh > added new check if dnsmasq is enabled or not # Added -- case statement > added a -c --check to count how many hosts are in /tmp/hosts that only begine with 0.0.0.0 lines # Added -- Updated Windows 10 Spy and Update Host files to latest release May 22/2017 # Added -- Comments in hosts file, to better seperate which is spying and which is to disable win update. # Added -- I re-coded the way the script knows if you are running script locally or remotely. This revision is self run, so now i don't have to bother checking # variable flags anymore. It is set statically. # Added -- New way to ping webserver remotely. Most routers have WAN PING disable so you could never check to see if webserver was online or offline. use GET # command # # Fixed: # # - fnc_xfer function script now has a error exit code when it fails to reach the webserver. # - fnc_checkurl function was added to WIN10_BLK4.x.sh file, there was a error when downloading files because didn't know if it was local or remote setup. # - sed syntax command, to not remove the # lines as we are now using them to comment with hosts names are for what. # - creation of config.file, missing quotes on RC variable, there was spaces in path # - SOURCEFLDR variable had a trailing /, I created another variable to remove this as the cp command was getting messed up, it was using two of the /'s # - Check to see if webserver is online either using script locally or remotely. # # ------------------------------------------------------------------------------------------ # Build 5.0 08/01 Aug 2017 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # # Known Issues: # ------------------------------------------------------------------------------------------ # # Version 5.0 will be the MAJOR update with all features to date. This will be the last update for this script. Have to stop some time .. :) # Working on new projects # # # New: # # Added -- Major update BUMPED version to 5.0 # Added -- Cleanup code, removed some redudant code throughout. # Added -- DEBUG code is now coded througout script. Wanted to always code this but left it to the end. :)