Skip to content

Commit a0dd3cb

Browse files
committed
refact: small adaptions dialogs
1 parent 0b3d26e commit a0dd3cb

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎system/cuos/app-init.sh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ HOME="${HOME:-/root}"
1313
export CONFIG_PATH="/system.json"
1414
LAST_CONFIG_PATH="/system_next.json"
1515

16-
INSTALL_MENU="$(jq -r '.install_menu' "${CONFIG_PATH}")"
17-
if [[ "${INSTALL_MENU}" = "true" ]]; then
16+
INSTALL_MENU="$(jq -r '.install_menu // false' "${CONFIG_PATH}")"
17+
if [[ "${INSTALL_MENU}" != "false" ]]; then
1818
report_info "cuos:installation:started" "Starting installation ..."
19-
"${SCRIPT_DIR}/dialog-maintenance.sh" --install
19+
"${SCRIPT_DIR}/dialog-maintenance.sh" --install "${INSTALL_MENU}"
2020
report_info "cuos:installation:done" "Installation done. Starting up system.."
2121
fi
2222

‎system/cuos/dialog-maintenance.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ maintenance_menu() {
1818
"System Maintenance" \
1919
"\nSelect an option:\n " \
2020
20 55 7 \
21-
"host" "Change Hostname: $(hostname)" \
21+
"host" "Change Hostname: $(hostname -s)" \
2222
"net" "Configure Network${ipaddress:+": ${ipaddress}"}" \
2323
- " " \
2424
"act" "System Actions" \
@@ -54,7 +54,7 @@ install_menu() {
5454
"\nSelect an option:\n " \
5555
20 55 7 \
5656
"${extra[@]}" \
57-
"host" "Change Hostname: $(hostname)" \
57+
"host" "Change Hostname: $(hostname -s)" \
5858
"net" "Configure Network${ipaddress:+": ${ipaddress}"}" \
5959
- " " \
6060
"act" "System Actions" \

0 commit comments

Comments
 (0)