Ubuntu Pastebin

Paste from neo at Mon, 15 Aug 2016 22:44:01 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
--- ubiquity-16.10.9/d-i/source/netcfg/wpa.c	2016-04-06 19:34:51.000000000 +0100
+++ ubiquity-16.10.9/d-i/source/netcfg/wpa.c	2016-08-15 23:23:48.340105089 +0100
@@ -1,3 +1,4 @@
+
 /*
 * WPA module for netcfg
 *
@@ -261,29 +262,29 @@
                  CMD_PROGRESSCANCELLED)
              goto stop;
 
-             if (debconf_progress_step(client, 1) == CMD_PROGRESSCANCELLED)
-                 goto stop;
+         if (debconf_progress_step(client, 1) == CMD_PROGRESSCANCELLED)
+             goto stop;
 
-             sleep(1);
+         sleep(1);
 
-             if ((seconds_slept <= wpa_timeout) && (seconds_slept % 5) == 0) {
-                 if (!wpa_status()) {
-                     debconf_progress_set(client, wpa_timeout);
-                     debconf_progress_info(client, "netcfg/wpa_success_note");
-                     state = 0;
-                     sleep(2);
-                     goto stop;
-                 }
-             }
-             if (seconds_slept == wpa_timeout) {
-                 debconf_progress_stop(client);
-                 debconf_capb(client, "backup");
-                 debconf_capb(client, "");
-                 debconf_input(client, "critical", "netcfg/wpa_supplicant_failed");
-                 debconf_go(client);
-                 debconf_capb(client, "backup");
-                 return 1;
+         if ((seconds_slept <= wpa_timeout) && (seconds_slept % 5) == 0) {
+             if (!wpa_status()) {
+                 debconf_progress_set(client, wpa_timeout);
+                 debconf_progress_info(client, "netcfg/wpa_success_note");
+                 state = 0;
+                 sleep(2);
+                 goto stop;
              }
+         }
+         if (seconds_slept == wpa_timeout) {
+             debconf_progress_stop(client);
+             debconf_capb(client, "backup");
+             debconf_capb(client, "");
+             debconf_input(client, "critical", "netcfg/wpa_supplicant_failed");
+             debconf_go(client);
+             debconf_capb(client, "backup");
+             return 1;
+         }
     }
     stop:
         debconf_progress_stop(client);
Download as text