# /etc/gponwan: Decoupling activation of GPON WAN until later in process
 if [ -f /proc/nvram/AtiFeatureGPONAEModeEnable ]
 then
   # GPON devices are slow FPS!
   ethswctl -c pktrate -v 0 -x 15000
   if [ -f /proc/nvram/AtiFeatureGPONAEModeSGMIIEnable ]
   then
     (gponctl aeMode --sgmii; ) &
   else
     (gponctl aeMode; sleep 1; gponctl aeStop; sleep 1; gponctl aeStart) &
   fi

   # Configure the optical module
   if [ -f /proc/nvram/AtiFeatureWanLosPolarity ]
   then
       gponctl configOpticalModule --los `cat /proc/nvram/AtiFeatureWanLosPolarity` > /dev/null
   fi

   if [ -f /proc/nvram/AtiFeatureWanTxEnPolarity ]
   then
       gponctl configOpticalModule --burst `cat /proc/nvram/AtiFeatureWanTxEnPolarity` > /dev/null
   fi
 fi
