MonkWho / pfatt

Enable true bridge mode for AT&T U-Verse and pfSense (this is a fork of an original repository https://github.com/aus/pfatt. Since it is not available anymore, I'll do my best to maintain a copy for people that still need a bypass)
449 stars 175 forks source link

Enhancement - speed up booting #80

Open gpz1100 opened 1 year ago

gpz1100 commented 1 year ago

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 1 year ago

Nice, adding this to owenthewizard/opnatt.