create_apが有効であることを確認できますか?

create_apが有効であることを確認できますか?

私は現在使用していますスクリプトcreate_apRaspbianを実行しているRaspberry Piを使用してWi-Fiアクセスポイント(WAP)を起動します。 Bashスクリプトを使用してAPが動作しているかどうかを確認できますか?

ちなみに私はこう始めました。

create_ap --ieee80211n --ht_capab '[HT40+]' -n wlan0 $ESSID $PWD 

ベストアンサー1

制作者の方々を説明してください。この問題は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

おすすめ記事