Bläddra i källkod

Initially select all apps for install in interactive mode

Bob Mottram 8 år sedan
förälder
incheckning
5161fee8f6
3 ändrade filer med 15 tillägg och 1 borttagningar
  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 Visa fil

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

+ 10
- 0
src/freedombone-utils-selector Visa fil

316
     done
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
 # creates the APPS_AVAILABLE and APPS_CHOSEN arrays based on
329
 # creates the APPS_AVAILABLE and APPS_CHOSEN arrays based on
320
 # the given variant name
330
 # the given variant name
321
 function choose_apps_for_variant {
331
 function choose_apps_for_variant {

+ 1
- 1
src/freedombone-utils-setup Visa fil

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