Browse Source

Initially select all apps for install in interactive mode

Bob Mottram 8 years ago
parent
commit
5161fee8f6
3 changed files with 15 additions and 1 deletions
  1. 4
    0
      src/freedombone-addremove
  2. 10
    0
      src/freedombone-utils-selector
  3. 1
    1
      src/freedombone-utils-setup

+ 4
- 0
src/freedombone-addremove View File

@@ -181,6 +181,10 @@ fi
181 181
 
182 182
 detect_installable_apps
183 183
 
184
+if [[ $1 == "all"* ]]; then
185
+    choose_all_installable_apps
186
+fi
187
+
184 188
 # if no applications were found
185 189
 if [[ ${#APPS_AVAILABLE[@]} == 0 ]]; then
186 190
     exit 1

+ 10
- 0
src/freedombone-utils-selector View File

@@ -316,6 +316,16 @@ function detect_installable_apps {
316 316
     done
317 317
 }
318 318
 
319
+function choose_all_installable_apps {
320
+    # selects all of the apps
321
+    app_index=0
322
+    for a in "${APPS_AVAILABLE[@]}"
323
+    do
324
+        APPS_CHOSEN[$app_index]="1"
325
+        app_index=$[app_index+1]
326
+    done
327
+}
328
+
319 329
 # creates the APPS_AVAILABLE and APPS_CHOSEN arrays based on
320 330
 # the given variant name
321 331
 function choose_apps_for_variant {

+ 1
- 1
src/freedombone-utils-setup View File

@@ -535,7 +535,7 @@ function setup_apps {
535 535
     upgrade_apps
536 536
 
537 537
     if [[ $is_interactive == "menuconfig"* ]]; then
538
-        ${PROJECT_NAME}-addremove
538
+        ${PROJECT_NAME}-addremove all
539 539
     fi
540 540
 
541 541
     if [[ $is_interactive == "noninteractive" || $is_interactive == "headless" ]]; then