Add ap-hotspot.sh and add some functions.