killswitch: avoid re-blocking devices already in blocked state#1606
Merged
brianmcgillion merged 2 commits intotiiuae:mainfrom Dec 4, 2025
Merged
killswitch: avoid re-blocking devices already in blocked state#1606brianmcgillion merged 2 commits intotiiuae:mainfrom
brianmcgillion merged 2 commits intotiiuae:mainfrom
Conversation
Collaborator
|
Could you please check my (late) comments on the previous PR #1577 (review), maybe something would apply to the scope of this one, as it's a refactor/bugfix 😀 |
kajusnau
reviewed
Dec 2, 2025
19 tasks
Collaborator
Author
|
Ready for review. |
Addresses a corner case where the "block --all" command is triggered and some devices are already blocked. To resolve this, I've added logic to detect the current device status and continue the loop if a device is already blocked. Signed-off-by: Vunny Sodhi <vunny.sodhi@unikie.com>
Ghafpkgs bump includes add periodic status refresh for ghaf-kill-switch app. Signed-off-by: Vunny Sodhi <vunny.sodhi@unikie.com>
Collaborator
Author
|
Last push includes:
|
|
Tested on Darter Pro (new image, did not have a suitable one to rebuild)
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Changes
Addresses a corner case where the "block --all" command is triggered and some devices are already blocked. To resolve this, I've added logic to detect the current device status and continue the loop if a device is already blocked.
Corner case as described below
This PR:
VS Mainline:
Type of Change
Related Issues / Tickets
Will also include fixes from tiiuae/ghafpkgs#154 (Merged)
Checklist
make-checksand it passesTesting Instructions
Applicable Targets
aarch64aarch64x86_64x86_64x86_64Installation Method
nixos-rebuild ... switchTest Steps To Verify:
Description of Changessection.