-
Posts
241 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Event Comments posted by schwar3kat
-
-
On 12/8/2023 at 10:44 PM, Tearran said:
@Igor Pointed out a probable solution to the concept, Basic consept logic https://github.com/armbian/configng/blob/main/bin/armbian-configng#L25
@Tearran Bear in mind I'm not experienced with bash, so expect some ignorance 😄
Perhaps some kind of standard initialization function if it exists, could be triggered first as each script is parsed, setting initialization variables could be included as a standard part of any function script. And a similar menu folder initialization script could be included in any folder.
One of those variables could set visibility. Another could set menu text, allowing dynamic menu text based on runtime requirements and possibly other options could be added if required.
Any logic could be used to set those variables.
To illustrate with an example of what I am imagining. Maybe something like this:
(excuse my bash if it is bad or not feasible)
# @description Do something useless. # # @exitcode 0 If successful. # # @options none # menu_init function triggered first by menu creation routines if it exists function menu_init(){ # # Only display menu option if internet connection is available # wget -q -t 1 --timeout=5 --spider http://github.com if [[ $? -ne 0 ]]; then menu_item=false else menu_item=true fi menu_text='Do something useful' # this could override the description as the menu text if it exists } function group::string() {s echo "Doing something" return 0 }
-
7 hours ago, Igor said:
I watched this week's video, and have a question about Joey's configng presentation.
If my understanding is correct then the directory/folder that contains the script function determines the menu group, and the script header description determines the menu item wording.
How can we include/exclude a script in the menu based on a runtime condition, like it is possible in armbian config? E.g. depending on a file or executable existing.How can we include/exclude a script group in the menu based on a runtime condition like it is possible in armbian config?
-
Hi developers, I'm missing the video's, since July. Any chance that you can record and post the video?
-
Release is planned for January 25th?
Edit: We don't need a time machine anymore now that you have fixed it 😃 -
I will be sleeping while you meet but I'm quite keen to see development related topics move to GitHub.
Perhaps along with setting the board bring up forum to read-only, a pinned post with instructions could be left.
The topic/header on #armbian IRC could also perhaps be leveraged in some way.
I have an idea that I'd like to table for discussion around providing developers with a simple consistent way to configure default sys-triggered LEDs in Armbian build. It might be distracting during a release rush though, but doing it on Github would be good. -
I'm in a minority time zone, so will often not be able to attend meetings that suit the majority.
I would like to read the minutes though, just to keep up with what's going on, and in case I can contribute.
Weekly developers meetup
in Community Calendar
25Posted
@Tearran I changed the function name in my example to menu_init (because that would be a more accurate description).
I have opened an issue on https://github.com/armbian/configng/issues/26 where the discussion could continue.
Also feel free to pm me.
Regards
Kat