fix for .sh suffix in 5268AC workaround

This commit is contained in:
aus 2019-02-26 08:37:24 -06:00
parent 4816e946e5
commit 90f5abb02e

View file

@ -125,16 +125,16 @@ if [ "$EAP_MODE" = "bridge" ] ; then
if [ "$EAP_BRIDGE_5268AC" = "1" ] ; then if [ "$EAP_BRIDGE_5268AC" = "1" ] ; then
# install proper rc script # install proper rc script
/bin/cp /conf/pfatt/bin/pfatt-5268AC.rc /usr/local/etc/rc.d/pfatt-5268AC /bin/cp /conf/pfatt/bin/pfatt-5268AC.rc /usr/local/etc/rc.d/pfatt-5268AC.sh
# kill any existing pfatt-5268AC process # kill any existing pfatt-5268AC process
PID=$(pgrep -f "pfatt-5268AC") PID=$(pgrep -f "pfatt-5268AC")
if [ ${PID} > 0 ]; then if [ ${PID} > 0 ]; then
/usr/bin/logger -st "pfatt" "terminating existing pfatt-5268AC on PID ${PID}..." /usr/bin/logger -st "pfatt" "terminating existing pfatt-5268AC on PID ${PID}..."
RES=$(kill ${PID}) RES=$(kill ${PID})
/usr/local/etc/rc.d/pfatt-5268AC stop /usr/local/etc/rc.d/pfatt-5268AC.sh stop
fi fi
/usr/bin/logger -st "pfatt" "enabling 5268AC workaround..." /usr/bin/logger -st "pfatt" "enabling 5268AC workaround..."
/usr/local/etc/rc.d/pfatt-5268AC start /usr/local/etc/rc.d/pfatt-5268AC.sh start
fi fi
/usr/bin/logger -st "pfatt" "ngeth0 should now be available to configure as your WAN..." /usr/bin/logger -st "pfatt" "ngeth0 should now be available to configure as your WAN..."
/usr/bin/logger -st "pfatt" "done!" /usr/bin/logger -st "pfatt" "done!"