Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing "Command before hosts is applied" #901

Open
BartmanEH opened this issue Sep 18, 2024 · 1 comment
Open

missing "Command before hosts is applied" #901

BartmanEH opened this issue Sep 18, 2024 · 1 comment

Comments

@BartmanEH
Copy link

BartmanEH commented Sep 18, 2024

Currently there is functionality to run commands AFTER SwitchHosts makes changes to the hosts file, however, what's missing is the ability to run commands BEFORE SwitchHosts makes changes to the hosts file.

I keep the hosts file locked to prevent unauthorized changes to the hosts file. I set the noschg and nouchg flags on the hosts file and these need to be cleared before the hosts file can be changed. Currently the app results in a "Fail!" message because the hosts file is locked.

So I'd like to run a couple of terminal commands to unlock the hosts file before SwitchHosts attempts to make it's changes. I would then also run commands after the SwitchHosts makes changes.

@BartmanEH
Copy link
Author

can this be added please? Can't really use this awesome application without the ability to unlock the hosts file first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant