-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Function to freeze and unfreeze board firmware #25
Conversation
Yes... this is exactly the type of thing that a menu initialization function in the script could achieve. The menu could say freeze if it's not frozen (freezed) and could say unfreeze if it is frozen (freezed). The menu item visibility could also depend on the resources (files and etc) being available. I'm not sure if my suggestions are viable or the best way to do it, but let's see if @Tearran can come up with a way to make this happen. |
There is no traditional definition for "freeze" in this context. Previous assumption was to explore Current assumption {
source /etc/armbian-release
packages=("linux-image-current-$LINUXFAMILY" "linux-u-boot-$BOARD-$BRANCH" "u-boot-tools")
for pkg in "${packages[@]}"; do
if apt-mark showhold | grep -q "^$pkg$"; then
sudo apt-mark unhold "$pkg"
echo "Unheld $pkg"
else
sudo apt-mark hold "$pkg"
echo "Held $pkg"
fi
done
} TODO trigger event communication layer. Failed but informative attempts have been made to get the relative information and provide doc generation of said variables last attempt was armbian/build#5894 Closed previous PR. Levering for for other reasons become a distraction. Abended idea of exposing any helpful information Exploring /share/armbian-config/configng.config key=pair for system state runtime checks.
The group function be responsible for changes system setting and to set the current state a file was intended. The config read this file and produce a json for other purposes, primarily the gui and tui. |
fix: moved PR template to proper folder add: CODE_OF_CONDUCT.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
general concept applied
This function is an example (its just copy / paste from old and does not function due to missing helper functions) what we need to implement as common functions:
Here I had in mind that menu would once says "Freeze" and second time "Unfreeze". We can solve this in several ways ... also we should condition this entry even file is there.