mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
update usage
This commit is contained in:
parent
8d1ed83246
commit
7b9eb9ad8f
1 changed files with 5 additions and 6 deletions
|
@ -1,6 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
#
|
|
||||||
# archboot-hwsim.sh - setup a test SSID
|
# archboot-hwsim.sh - setup a test SSID
|
||||||
# by Tobias Powalowski <tpowa@archlinux.org>
|
# by Tobias Powalowski <tpowa@archlinux.org>
|
||||||
# usage(exitvalue)
|
# usage(exitvalue)
|
||||||
|
@ -8,14 +7,14 @@
|
||||||
. /usr/lib/archboot/common.sh
|
. /usr/lib/archboot/common.sh
|
||||||
_usage()
|
_usage()
|
||||||
{
|
{
|
||||||
echo -e "\e[1mWelcome to \e[34marchboot's\e[m \e[1mHWSIM:\e[m"
|
echo -e "\e[1m\e[36mArchboot\e[m \e[1m- HWSIM:\e[m"
|
||||||
echo -e "\e[1m---------------------------------------\e[m"
|
echo -e "\e[1m-----------------\e[m"
|
||||||
echo "Create a simulated wireless SSID for testing purposes"
|
echo "Create a simulated wireless SSID for testing purposes"
|
||||||
echo "with mac80211_hwsim module."
|
echo "with mac80211_hwsim module."
|
||||||
echo "- wlan0 will be setup as the AP. Don't use for scanning!"
|
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 "- wlan1 will be setup for STATION mode. Use this for scanning for your AP."
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "usage: \e[1m${_BASENAME} <SSID>\e[m"
|
echo -e "Usage: \e[1m${_BASENAME} <SSID>\e[m"
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
[[ -z "${1}" ]] && _usage
|
[[ -z "${1}" ]] && _usage
|
||||||
|
|
Loading…
Reference in a new issue