pfatt icon indicating copy to clipboard operation
pfatt copied to clipboard

Enhancement - speed up booting

Open gpz1100 opened this issue 2 years ago • 1 comments

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.

gpz1100 avatar Apr 05 '23 19:04 gpz1100

Nice, adding this to owenthewizard/opnatt.

owenthewizard avatar Apr 05 '23 22:04 owenthewizard