unify usage

This commit is contained in:
Tobias Powalowski 2024-08-01 11:41:51 +02:00
parent cd59c0c882
commit cf757a2310
4 changed files with 12 additions and 12 deletions

View file

@ -7,7 +7,7 @@
. /usr/lib/archboot/common.sh . /usr/lib/archboot/common.sh
_usage() _usage()
{ {
echo -e "\e[1m\e[36mArchboot\e[m\e[1m - HWSIM\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."

View file

@ -4,15 +4,15 @@
. /etc/archboot/defaults . /etc/archboot/defaults
_usage () { _usage () {
echo "CREATE ARCHBOOT CONTAINER" echo -e "\e[1m\e[36mArchboot\e[m\e[1m - Create Container\e[m"
echo "-------------------------" echo -e "\e[1m---------------------------\e[m"
echo "This will create an archboot container for an archboot image." echo "This will create an archboot container for an archboot image."
echo "" echo ""
echo " -cc Cleanup container eg. removing manpages, includes..." echo " -cc Cleanup container eg. removing manpages, includes..."
echo " -cp Cleanup container package cache" echo " -cp Cleanup container package cache"
echo " -install-source=<server> add package server with archboot repository" echo " -install-source=<server> add package server with archboot repository"
echo "" echo ""
echo "usage: ${_BASENAME} <directory> <options>" echo -e "Usage: \e[1m${_BASENAME} <directory> <options>\e[m"
exit 0 exit 0
} }

View file

@ -7,19 +7,19 @@ _ISODIR="$(mktemp -d ISODIR.XXX)"
_BOOTLOADER="/usr/share/archboot/bootloader" _BOOTLOADER="/usr/share/archboot/bootloader"
_usage () { _usage () {
echo "CREATE ${_ARCH} USB/CD IMAGES" echo -e "\e[1m\e[36mArchboot\e[m\e[1m - Create ${_ARCH} USB/CD Images\e[m"
echo "-----------------------------" echo -e "\e[1m--------------------------------------\e[m"
echo "This will create an archboot iso image." echo "This will create an archboot iso image."
echo "" echo ""
echo " -h This message."
echo " -g Starting generation of image." echo " -g Starting generation of image."
echo " -c=CONFIG Which CONFIG should be used." echo " -c=CONFIG Which CONFIG should be used."
echo " ${_CONFIG_DIR} locates the configs" echo " ${_CONFIG_DIR} locates the configs"
echo " default=${_ARCH}.conf" echo " default=${_ARCH}.conf"
echo " -i=IMAGENAME Your IMAGENAME." echo " -i=IMAGENAME Your IMAGENAME."
echo " -s Save init ramdisk to $(pwd)" echo " -s Save initramfs to $(pwd)"
echo " -h This message."
echo "" echo ""
echo "usage: ${_BASENAME} <options>" echo -e "Usage: \e[1m${_BASENAME} <options>\e[m"
exit 0 exit 0
} }

View file

@ -17,12 +17,12 @@ _CONFIG_LOCAL="${_ARCH}-local.conf"
_W_DIR="$(mktemp -u archboot-release.XXX)" _W_DIR="$(mktemp -u archboot-release.XXX)"
_usage () { _usage () {
echo "CREATE ARCHBOOT RELEASE IMAGE" echo -e "\e[1m\e[36mArchboot\e[m\e[1m - Create Archboot Release Image\e[m"
echo "-----------------------------" echo -e "\e[1m----------------------------------------\e[m"
echo "This will create an archboot release image in <directory>." echo "This will create an archboot release image in <directory>."
echo "You can specify a certain <server> with an archboot repository." echo "You can specify a certain <server> with an archboot repository."
echo "" echo ""
echo "usage: ${_BASENAME} <directory> <server>" echo -e "Usage: \e[1m${_BASENAME} <directory> <server>\e[m"
exit 0 exit 0
} }