Add ap-hotspot.sh to pro file. Call ap-hotspot.sh instead of those two scripts in the cmd/ directory.