update usage

This commit is contained in:
Tobias Powalowski 2024-08-01 10:09:36 +02:00
parent 8d1ed83246
commit 7b9eb9ad8f

View file

@ -1,6 +1,5 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-3.0-or-later
#
# archboot-hwsim.sh - setup a test SSID
# by Tobias Powalowski <tpowa@archlinux.org>
# usage(exitvalue)
@ -8,14 +7,14 @@
. /usr/lib/archboot/common.sh
_usage()
{
echo -e "\e[1mWelcome to \e[34marchboot's\e[m \e[1mHWSIM:\e[m"
echo -e "\e[1m---------------------------------------\e[m"
echo -e "\e[1m\e[36mArchboot\e[m \e[1m- HWSIM:\e[m"
echo -e "\e[1m-----------------\e[m"
echo "Create a simulated wireless SSID for testing purposes"
echo "with mac80211_hwsim module."
echo "- wlan0 will be setup as the AP. Don't use for scanning!"
echo "- wlan1 will be setup for STATION mode. Use this for scanning for your AP."
echo ""
echo -e "usage: \e[1m${_BASENAME} <SSID>\e[m"
echo -e "Usage: \e[1m${_BASENAME} <SSID>\e[m"
exit 0
}
[[ -z "${1}" ]] && _usage