mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 11:30:37 +02:00
update usage
This commit is contained in:
parent
8d1ed83246
commit
7b9eb9ad8f
1 changed files with 5 additions and 6 deletions
|
@ -1,21 +1,20 @@
|
|||
#!/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>
|
||||
# archboot-hwsim.sh - setup a test SSID
|
||||
# by Tobias Powalowski <tpowa@archlinux.org>
|
||||
# usage(exitvalue)
|
||||
# outputs a usage message and exits with value
|
||||
. /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
|
||||
|
|
Loading…
Reference in a new issue