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 · 0 comments
Open

missing "Command before hosts is applied" #901

BartmanEH opened this issue Sep 18, 2024 · 0 comments

Comments

@BartmanEH
Copy link

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.

So I'd like to run a couple of terminal commands before SwitchHosts attempts to make it's changes which currently results in a "Fail!" message.

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