Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement - speed up booting #80

Open
gpz1100 opened this issue Apr 5, 2023 · 1 comment
Open

Enhancement - speed up booting #80

gpz1100 opened this issue Apr 5, 2023 · 1 comment

Comments

@gpz1100
Copy link

gpz1100 commented Apr 5, 2023

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
Copy link
Contributor

Nice, adding this to owenthewizard/opnatt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants