Created
May 29, 2021 12:27
-
-
Save rojenzaman/695ed569e32440fa379d387c22f47d77 to your computer and use it in GitHub Desktop.
/etc/hosts file refer to another configuration file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
case $1 in | |
0|--disable) cat /etc/hosts.local > /etc/hosts ;; | |
1|--enable) cat /etc/hosts.local > /etc/hosts ; cat /etc/hosts.d/* >> /etc/hosts ;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment