XDream8 / hosts-creator

this is a script to download and merge more than 2 host lists

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hosts-creator

FEATURES

  • Configuration file
  • Colored output
  • Download and merge multiple host lists
  • remove comments, trailing spaces and duplicate lines from new hosts file
  • replace new hosts file with /etc/hosts
  • use rdo or doas if available, if not use sudo
  • backup old /etc/hosts file
  • error management while using doas(sudo or rdo)
  • size check(if file is > 60M, it reports to you)

Deps

  • (doas, sudo or rdo)
  • curl
  • awk
  • hostname

Usage

clone the repository and enter into directory

$ git clone https://github.com/XDream8/hosts-creator
$ cd hosts-creator

edit the configuration with your favourite editor

$ nvim config

run the script

$ ./hosts-creator.sh

About

this is a script to download and merge more than 2 host lists

License:MIT License


Languages

Language:Shell 100.0%