Skip to content

Commit 80e5936

Browse files
authored
Merge pull request #40 from schwar3kat/main
Fix multiple typo's
2 parents 4c4a9a9 + 92952e9 commit 80e5936

File tree

7 files changed

+95
-61
lines changed

7 files changed

+95
-61
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Description
2+
3+
_Please include a summary of the change and which issue is fixed. Provide relevant motivation and context. Ensure that no new external dependencies are introduced in this change._
4+
5+
Issue reference:
6+
Related documentation:
7+
8+
# Implementation Details
9+
10+
_Provide a detailed description of the implementation. Include the following:_
11+
12+
- [ ] Key changes introduced by this PR
13+
- [ ] Justification for the changes
14+
- [ ] Confirmation that no new external dependencies or modules have been introduced
15+
16+
# Documentation Summary
17+
18+
- [ ] **Metadata Included:**
19+
_Did you include the metadata (associative arrays) in the code? Ensure that metadata for modules, jobs, and runtime has been updated appropriately._
20+
21+
- [ ] **Document Generated:**
22+
_Did you generate the updated documentation using `armbian-configng --doc`? Confirm if the command was run to update `README.md` and provide any relevant details._
23+
24+
# Testing Procedure
25+
26+
_Describe the tests you ran to verify your changes. Provide relevant details about your test configuration._
27+
28+
- [ ] Test 1: Description and results
29+
- [ ] Test 2: Description and results
30+
31+
# Checklist
32+
33+
- [ ] My code follows the style guidelines of this project
34+
- [ ] I have performed a self-review of my code
35+
- [ ] I have ensured that my changes do not introduce new warnings or errors
36+
- [ ] No new external dependencies are included
37+
- [ ] Changes have been tested and verified
38+
- [ ] I have included necessary metadata in the code, including associative arrays

README.md

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
# Armbian Configuration Utility
3-
Updated: Thu Jul 4 10:57:01 PM MDT 2024
3+
Updated: Wed 31 Jul 2024 23:44:46 NZST
44

55
Utility for configuring your board, adjusting services, and installing applications. It comes with Armbian by default.
66

@@ -10,9 +10,9 @@ sudo armbian-config
1010
~~~
1111

1212
- ## **System**
13-
- **S01** - Enable Armbina kernal upgrades
14-
- **S02** - Disable Armbina kernal upgrades
15-
- **S03** - Edit the boot enviroment (WIP)
13+
- **S01** - Enable Armbian kernel upgrades
14+
- **S02** - Disable Armbian kernel upgrades
15+
- **S03** - Edit the boot environment (WIP)
1616
- **S04** - Install Linux headers
1717
- **S05** - Remove Linux headers
1818

@@ -25,14 +25,14 @@ sudo armbian-config
2525
- **N04** - Uninstall Infrared support
2626
- **N05** - Manage wifi network connections
2727
- **N06** - Advanced Edit /etc/network/interface
28-
- **N07** - Disconect and forget all wifi connections (Advanced)
29-
- **N08** - Toggle system IPv6/IPv4 internet protical
28+
- **N07** - Disconnect and forget all wifi connections (Advanced)
29+
- **N08** - Toggle system IPv6/IPv4 internet protocol
3030
- **N09** - (WIP) Setup Hotspot/Access point
3131

3232

3333
- ## **Localisation**
34-
- **L00** - Change Globla timezone (WIP)
35-
- **L01** - Change Locales reconfigure the language and charitorset
34+
- **L00** - Change Global timezone (WIP)
35+
- **L01** - Change Locales reconfigure the language and character set
3636
- **L02** - Change Keyboard layout
3737
- **L03** - Change APT mirrors
3838

@@ -43,7 +43,7 @@ sudo armbian-config
4343

4444

4545
- ## **Help**
46-
- **H00** - About This systme. (WIP)
46+
- **H00** - About This system. (WIP)
4747
- **H02** - List of Config function(WIP)
4848

4949
## Install
@@ -58,7 +58,7 @@ sudo apt install armbian-config
5858
sudo wget https://apt.armbian.com/armbian.key -O key
5959
sudo gpg --dearmor < key | sudo tee /usr/share/keyrings/armbian.gpg > /dev/null
6060
sudo chmod go+r /usr/share/keyrings/armbian.gpg
61-
sudo echo "deb [arch=arm64 signed-by=/usr/share/keyrings/armbian.gpg] http://apt.armbian.com bookworm main bookworm-utils bookworm-desktop" | sudo tee /etc/apt/sources.list.d/armbian.list
61+
sudo echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/armbian.gpg] http://apt.armbian.com $(lsb_release -cs) main $(lsb_release -cs)-utils $(lsb_release -cs)-desktop" | sudo tee /etc/apt/sources.list.d/armbian.list
6262
sudo apt update
6363
sudo apt install armbian-config
6464
}
@@ -67,7 +67,7 @@ sudo apt install armbian-config
6767
***
6868

6969
## CLI options
70-
Command ine options.
70+
Command line options.
7171

7272
Use:
7373
~~~
@@ -81,9 +81,9 @@ Usage: armbian-configng [option] [arguments]
8181
--help - Display this help message.
8282
main=Help - Display Legacy Options (Backward Compatible)
8383
84-
--cli S01 - Enable Armbina kernal upgrades
85-
--cli S02 - Disable Armbina kernal upgrades
86-
--cli S03 - Edit the boot enviroment (WIP)
84+
--cli S01 - Enable Armbian kernel upgrades
85+
--cli S02 - Disable Armbian kernel upgrades
86+
--cli S03 - Edit the boot environment (WIP)
8787
--cli S04 - Install Linux headers
8888
--cli S05 - Remove Linux headers
8989
--cli N00 - Install Bluetooth support
@@ -93,11 +93,11 @@ Usage: armbian-configng [option] [arguments]
9393
--cli N04 - Uninstall Infrared support
9494
--cli N05 - Manage wifi network connections
9595
--cli N06 - Advanced Edit /etc/network/interface
96-
--cli N07 - Disconect and forget all wifi connections (Advanced)
97-
--cli N08 - Toggle system IPv6/IPv4 internet protical
96+
--cli N07 - Disconnect and forget all wifi connections (Advanced)
97+
--cli N08 - Toggle system IPv6/IPv4 internet protocol
9898
--cli N09 - (WIP) Setup Hotspot/Access point
99-
--cli L00 - Change Globla timezone (WIP)
100-
--cli L01 - Change Locales reconfigure the language and charitorset
99+
--cli L00 - Change Global timezone (WIP)
100+
--cli L01 - Change Locales reconfigure the language and character set
101101
--cli L02 - Change Keyboard layout
102102
--cli L03 - Change APT mirrors
103103
--cli I00 - Update Application Repository
@@ -127,7 +127,7 @@ Usage: armbian-configng main=[arguments] selection=[options]
127127

128128
## Development
129129

130-
Develoment is divided into three sections:
130+
Development is divided into three sections:
131131

132132
Click for more info:
133133

@@ -138,7 +138,7 @@ A list of the jobs defined in the Jobs file.
138138

139139
### S01
140140

141-
Enable Armbina kernal upgrades
141+
Enable Armbian kernel upgrades
142142

143143
Jobs:
144144

@@ -148,7 +148,7 @@ set_safe_boot unhold
148148

149149
### S02
150150

151-
Disable Armbina kernal upgrades
151+
Disable Armbian kernel upgrades
152152

153153
Jobs:
154154

@@ -158,7 +158,7 @@ set_safe_boot freeze
158158

159159
### S03
160160

161-
Edit the boot enviroment (WIP)
161+
Edit the boot environment (WIP)
162162

163163
Jobs:
164164

@@ -271,26 +271,26 @@ nano /etc/network/interfaces
271271

272272
### N07
273273

274-
Disconect and forget all wifi connections (Advanced)
274+
Disconnect and forget all wifi connections (Advanced)
275275

276276
Jobs:
277277

278278
~~~
279-
get_user_continue "Disconect and forget all wifi connections
280-
Would you like to contiue?" process_input
279+
get_user_continue "Disconnect and forget all wifi connections
280+
Would you like to continue?" process_input
281281
LC_ALL=C nmcli --fields UUID,TIMESTAMP-REAL,TYPE con show | grep wifi | awk '{print $1}' | while read line; \
282282
do nmcli con delete uuid $line; done > /dev/null
283283
~~~
284284

285285
### N08
286286

287-
Toggle system IPv6/IPv4 internet protical
287+
Toggle system IPv6/IPv4 internet protocol
288288

289289
Jobs:
290290

291291
~~~
292-
get_user_continue "This will toggle your internet protical
293-
Would you like to contiue?" process_input
292+
get_user_continue "This will toggle your internet protocol
293+
Would you like to continue?" process_input
294294
toggle_ipv6 | show_infobox
295295
~~~
296296

@@ -308,7 +308,7 @@ hotspot_setup
308308

309309
### L00
310310

311-
Change Globla timezone (WIP)
311+
Change Global timezone (WIP)
312312

313313
Jobs:
314314

@@ -318,7 +318,7 @@ dpkg-reconfigure tzdata
318318

319319
### L01
320320

321-
Change Locales reconfigure the language and charitorset
321+
Change Locales reconfigure the language and character set
322322

323323
Jobs:
324324

@@ -371,14 +371,14 @@ armbianmonitor -m | show_infobox
371371

372372
### H00
373373

374-
About This systme. (WIP)
374+
About This system. (WIP)
375375

376376
Jobs:
377377

378378
~~~
379-
show_message <<< "This app is to help exicute prosedures to configure your system
379+
show_message <<< "This app is to help execute procedures to configure your system
380380
381-
Some option may not work on manualy modified sytemes"
381+
Some options may not work on manually modified systems"
382382
~~~
383383

384384
### H02
@@ -402,21 +402,21 @@ These helper functions facilitate various operations related to job management,
402402
| Description | Example | Credit |
403403
|:----------- | ------- |:------:|
404404
| Generate a Help message legacy cli commands. | see_cli_legacy | Joey Turner
405-
| Run time varibales Migrated procedures from Armbian config. | set_runtime_variables | Igor Pecovnik
405+
| Run time variables Migrated procedures from Armbian config. | set_runtime_variables | Igor Pecovnik
406406
| Generate this markdown table of all module_options | see_function_table_md | Joey Turner
407407
| Display a menu from pipe | show_menu <<< armbianmonitor -h ; | Joey Turner
408408
| Build the main menu from a object | generate_top_menu 'json_data' | Joey Turner
409409
| Migrated procedures from Armbian config. | is_package_manager_running | Igor Pecovnik
410410
| Migrated procedures from Armbian config. | check_desktop | Igor Pecovnik
411411
| Generate Document files. | generate_readme | Joey Turner
412412
| Needed by generate_menu | | Joey Turner
413-
| Display a Yes/No dialog box and prosees continue/exit | get_user_continue 'Do you wish to continue?' process_input | Joey Turner
413+
| Display a Yes/No dialog box and process continue/exit | get_user_continue 'Do you wish to continue?' process_input | Joey Turner
414414
| Display a message box | show_message <<< 'hello world' | Joey Turner
415415
| Migrated procedures from Armbian config. | connect_bt_interface | Igor Pecovnik
416416
| Freeze/unhold Migrated procedures from Armbian config. | set_safe_boot unhold or set_safe_boot freeze | Igor Pecovnik
417417
| Check when apt list was last updated | see_current_apt | Joey Turner
418418
| Migrated procedures from Armbian config. | check_if_installed nano | Igor Pecovnik
419-
| Generate 'Armbian CPU logo' SVG for docunment file. | generate_svg | Joey Turner
419+
| Generate 'Armbian CPU logo' SVG for document file. | generate_svg | Joey Turner
420420
| Remove Linux headers | Headers_remove | Joey Turner
421421
| Show or hide menu items based on conditions | toggle_menu_item | Joey Turner
422422
| Update submenu descriptions based on conditions | update_submenu_data | Joey Turner
@@ -431,10 +431,10 @@ These helper functions facilitate various operations related to job management,
431431
| Toggle IPv6 on or off | toggle_ipv6 | Joey Turner
432432
| Generate a Help message for cli commands. | see_cli_list | Joey Turner
433433
| Generate JSON-like object file. | generate_json | Joey Turner
434-
| Change the background color of the terminal or dialoge box | set_colors 0-7 | Joey Turner
434+
| Change the background color of the terminal or dialog box | set_colors 0-7 | Joey Turner
435435
| Serve the edit and debug server. | serve_doc | Joey Turner
436436
| Update JSON data with system information | update_json_data | Joey Turner
437-
| pipe line strings to a infobox | show_infobox <<< 'hello world' ; | Joey Turner
437+
| pipeline strings to an infobox | show_infobox <<< 'hello world' ; | Joey Turner
438438
| Show the usage of the functions. | see_use | Joey Turner
439439
| Check the internet connection with fallback DNS | see_ping | Joey Turner
440440
| Secure version of get_user_continue | get_user_continue_secure 'Do you wish to continue?' process_input | Joey Turner
@@ -458,14 +458,14 @@ This section outlines the runtime environment to check configurations and status
458458
## Testing and contributing
459459

460460
<details>
461-
<summary><b>Get Devleopment</b></summary>
461+
<summary><b>Get Development</b></summary>
462462

463-
Install the dependencys:
463+
Install the dependencies:
464464
~~~
465465
sudo apt install git jq whiptail
466466
~~~
467467

468-
Get Developent and contribute:
468+
Get Development and contribute:
469469
~~~
470470
{
471471
git clone https://github.com/armbian/configng

bin/armbian-configng

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ source "$lib_dir/config.ng.network.sh"
4747
echo "Loaded Network helpers..." #| show_infobox ;
4848

4949
#
50-
# Loads the varibles from beta armbian-config for runtime handeling
50+
# Loads the variables from beta armbian-config for runtime handling
5151

5252
source "$lib_dir/config.ng.runtime.sh" ;
5353
echo "Loaded Runtime conditions..." #| show_infobox ;
@@ -103,7 +103,7 @@ case "$1" in
103103
"main="*)
104104
declare -A main_map
105105
main_map=(
106-
# map name to menu catagory
106+
# map name to menu category
107107
["System"]="S"
108108
["Software"]="I"
109109
["Network"]="N"

lib/armbian-configng/config.ng.docs.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ sudo apt install armbian-config
5151
sudo wget https://apt.armbian.com/armbian.key -O key
5252
sudo gpg --dearmor < key | sudo tee /usr/share/keyrings/armbian.gpg > /dev/null
5353
sudo chmod go+r /usr/share/keyrings/armbian.gpg
54-
sudo echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/armbian.gpg] http://apt.armbian.com $(lsb_release -cs) main $(lsb_release -cs)-utils $(lsb_release -cs)-desktop" | sudo tee /etc/apt/sources.list.d/armbian.list
54+
sudo echo "deb [arch=\$(dpkg --print-architecture) signed-by=/usr/share/keyrings/armbian.gpg] http://apt.armbian.com \$(lsb_release -cs) main \$(lsb_release -cs)-utils \$(lsb_release -cs)-desktop" | sudo tee /etc/apt/sources.list.d/armbian.list
5555
sudo apt update
5656
sudo apt install armbian-config
5757
}
@@ -131,12 +131,12 @@ This section outlines the runtime environment to check configurations and status
131131
<details>
132132
<summary><b>Get Development</b></summary>
133133
134-
Install the dependencys:
134+
Install the dependencies:
135135
~~~
136136
sudo apt install git jq whiptail
137137
~~~
138138
139-
Get Developent and contribute:
139+
Get Development and contribute:
140140
~~~
141141
{
142142
git clone https://github.com/armbian/configng
@@ -172,15 +172,15 @@ module_options+=(
172172
["serve_doc,feature"]="serve_doc"
173173
["serve_doc,desc"]="Serve the edit and debug server."
174174
["serve_doc,example"]="serve_doc"
175-
["serve_doc,status"]="acive"
175+
["serve_doc,status"]="active"
176176
["serve_doc,doc_link"]=""
177177
)
178178
#
179179
# Function to serve the edit and debug server
180180
#
181181
function serve_doc() {
182182
if [[ "$(id -u)" == "0" ]] ; then
183-
echo "Red alert! not for sude user"
183+
echo "Red alert! not for sudo user"
184184
exit 1
185185
fi
186186
if [[ -z $CODESPACES ]]; then

lib/armbian-configng/config.ng.functions.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ module_options+=(
508508
["show_infobox,author"]="Joey Turner"
509509
["show_infobox,ref_link"]=""
510510
["show_infobox,feature"]="show_infobox"
511-
["show_infobox,desc"]="pipeline strings to a infobox "
511+
["show_infobox,desc"]="pipeline strings to an infobox "
512512
["show_infobox,example"]="show_infobox <<< 'hello world' ; "
513513
["show_infobox,doc_link"]=""
514514
["show_infobox,status"]="Active"
@@ -558,7 +558,7 @@ show_menu(){
558558

559559
# Get the input and convert it into an array of options
560560
inpu_raw=$(cat)
561-
# Remove the lines befor -h
561+
# Remove the lines before -h
562562
input=$(echo "$inpu_raw" | sed 's/-\([a-zA-Z]\)/\1/' | grep '^ [a-zA-Z] ' | grep -v '\[')
563563
options=()
564564
while read -r line; do
@@ -821,7 +821,3 @@ sanitize_input() {
821821
done
822822
echo "${sanitized_input[@]}"
823823
}
824-
825-
826-
827-

0 commit comments

Comments
 (0)