Compare commits

..

No commits in common. "master" and "reedmcintosh/FreeBSD-13" have entirely different histories.

2 changed files with 6 additions and 9 deletions

View file

@ -6,13 +6,13 @@ printhexstring() { awk '{l=split($0,c,"");for(i=1;i<l-1;i=i+2)printf("%s:",subst
echo echo
echo "Step 1) RG information" echo "Step 1) RG information"
echo echo
while read -p " Manufacturer [1=Pace, 2=Motorola/Arris, 3=Nokia]: " mfg; do while read -p " Manufacturer [1=Pace, 2=Motorola/Arris]: " mfg; do
([ "$mfg" = "1" ] || [ "$mfg" = "2" ] || [ "$mfg" = "3" ]) && break ([ "$mfg" = "1" ] || [ "$mfg" = "2" ]) && break
done done
while read -p " Serial number: " serial; do [ -n "$serial" ] && break; done while read -p " Serial number: " serial; do [ -n "$serial" ] && break; done
echo echo
[ "$mfg" = "1" ] && mfg="00D09E" || [ "$mfg" = "2" ] && mfg="001E46" || [ "$mfg" = "3" ] && mfg="207852" [ "$mfg" = "1" ] && mfg="00D09E" || mfg="001E46"
echo -n "Identifier: " echo -n "Identifier: "
ascii2hex "$mfg-$serial" | printhexstring ascii2hex "$mfg-$serial" | printhexstring

View file

@ -18,10 +18,8 @@ getTimestamp(){
echo "$(getTimestamp) RG_ETHER_ADDR: $RG_ETHER_ADDR" echo "$(getTimestamp) RG_ETHER_ADDR: $RG_ETHER_ADDR"
echo -n "$(getTimestamp) attaching interfaces to ng_ether... " echo -n "$(getTimestamp) attaching interfaces to ng_ether... "
# Only needed for older versions of pfatt. Newer versions handle this automatically. /usr/local/bin/php -r "pfSense_ngctl_attach('.', '$ONT_IF');"
# Eventually this can be remove. /usr/local/bin/php -r "pfSense_ngctl_attach('.', '$RG_IF');"
/usr/local/bin/php -r "function_exists('pfSense_ngctl_attach') && pfSense_ngctl_attach('.', '$ONT_IF');"
/usr/local/bin/php -r "function_exists('pfSense_ngctl_attach') && pfSense_ngctl_attach('.', '$RG_IF');"
echo "OK!" echo "OK!"
echo "$(getTimestamp) building netgraph nodes..." echo "$(getTimestamp) building netgraph nodes..."
@ -82,8 +80,7 @@ getTimestamp(){
echo "OK!" echo "OK!"
echo -n "$(getTimestamp) enabling promiscuous mode on $ONT_IF... " echo -n "$(getTimestamp) enabling promiscuous mode on $ONT_IF... "
# Updated as per https://github.com/MonkWho/pfatt/issues/65 /sbin/ifconfig $ONT_IF promisc
/sbin/ifconfig $ONT_IF promisc -vlanhwtag -vlanhwfilter -vlanhwtso
echo "OK!" echo "OK!"
echo "$(getTimestamp) ngeth0 should now be available to configure as your pfSense WAN" echo "$(getTimestamp) ngeth0 should now be available to configure as your pfSense WAN"