Как объяснил создатель в этой проблеме на GitHub , поможет проверка, подобная следующей:
if [[ create_ap --list-running | grep wlan0 | wc -l -ge 1 ]]
then
echo "It works !!"
fi
Как это работает:
create_ap --list-running : shows all the interfaces on which create_ap is running
grep wlan0 : get the lines where we can find the interface
wc -l : count the lines