Enhancement - speed up booting #80

Open
opened 2023-04-06 00:37:51 +05:30 by gpz1100 · 1 comment
gpz1100 commented 2023-04-06 00:37:51 +05:30 (Migrated from github.com)

This applies to either of the *sense flavors.

In the script, in the following section;

# wait until wpa_cli has authenticated.
  WPA_STATUS_CMD="wpa_cli status | grep 'suppPortStatus' | cut -d= -f2"
  IP_STATUS_CMD="ifconfig ngeth0 | grep 'inet\ ' | cut -d' ' -f2"

  /usr/bin/logger -st "pfatt" "waiting EAP for authorization..."

immediately under the last line (after waiting for EAP...), add the following

sleep 5
/usr/sbin/wpa_cli logon >/dev/null 2>&1

I observed in testing that the ont sends out a "username......." request about every 30 seconds. Depending on timing, this may extend the boot up process by that long. By issuing the login command, it jumpstarts the eapol auth process almost immediately. The sleep 5 is there to allow the system time to bring up the interface.

This applies to either of the *sense flavors. In the script, in the following section; ``` # wait until wpa_cli has authenticated. WPA_STATUS_CMD="wpa_cli status | grep 'suppPortStatus' | cut -d= -f2" IP_STATUS_CMD="ifconfig ngeth0 | grep 'inet\ ' | cut -d' ' -f2" /usr/bin/logger -st "pfatt" "waiting EAP for authorization..." ``` immediately under the last line (after waiting for EAP...), add the following ``` sleep 5 /usr/sbin/wpa_cli logon >/dev/null 2>&1 ``` I observed in testing that the ont sends out a "username......." request about every 30 seconds. Depending on timing, this may extend the boot up process by that long. By issuing the login command, it jumpstarts the eapol auth process almost immediately. The sleep 5 is there to allow the system time to bring up the interface.
owenthewizard commented 2023-04-06 03:40:16 +05:30 (Migrated from github.com)

Nice, adding this to owenthewizard/opnatt.

Nice, adding this to [owenthewizard/opnatt](https://github.com/owenthewizard/opnatt).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hhf/pfatt#80
No description provided.