From cf757a2310f5f37935a08fb8d4789d619c520547 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Thu, 1 Aug 2024 11:41:51 +0200 Subject: [PATCH] unify usage --- usr/bin/archboot-hwsim.sh | 2 +- usr/lib/archboot/container.sh | 6 +++--- usr/lib/archboot/iso.sh | 10 +++++----- usr/lib/archboot/release.sh | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/usr/bin/archboot-hwsim.sh b/usr/bin/archboot-hwsim.sh index 8b9a9f8a2..db51bec89 100755 --- a/usr/bin/archboot-hwsim.sh +++ b/usr/bin/archboot-hwsim.sh @@ -7,7 +7,7 @@ . /usr/lib/archboot/common.sh _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 "Create a simulated wireless SSID for testing purposes" echo "with mac80211_hwsim module." diff --git a/usr/lib/archboot/container.sh b/usr/lib/archboot/container.sh index 269369973..372d63b7b 100644 --- a/usr/lib/archboot/container.sh +++ b/usr/lib/archboot/container.sh @@ -4,15 +4,15 @@ . /etc/archboot/defaults _usage () { - echo "CREATE ARCHBOOT CONTAINER" - echo "-------------------------" + echo -e "\e[1m\e[36mArchboot\e[m\e[1m - Create Container\e[m" + echo -e "\e[1m---------------------------\e[m" echo "This will create an archboot container for an archboot image." echo "" echo " -cc Cleanup container eg. removing manpages, includes..." echo " -cp Cleanup container package cache" echo " -install-source= add package server with archboot repository" echo "" - echo "usage: ${_BASENAME} " + echo -e "Usage: \e[1m${_BASENAME} \e[m" exit 0 } diff --git a/usr/lib/archboot/iso.sh b/usr/lib/archboot/iso.sh index 5fc6ce306..ee425c19e 100644 --- a/usr/lib/archboot/iso.sh +++ b/usr/lib/archboot/iso.sh @@ -7,19 +7,19 @@ _ISODIR="$(mktemp -d ISODIR.XXX)" _BOOTLOADER="/usr/share/archboot/bootloader" _usage () { - echo "CREATE ${_ARCH} USB/CD IMAGES" - echo "-----------------------------" + echo -e "\e[1m\e[36mArchboot\e[m\e[1m - Create ${_ARCH} USB/CD Images\e[m" + echo -e "\e[1m--------------------------------------\e[m" echo "This will create an archboot iso image." echo "" + echo " -h This message." echo " -g Starting generation of image." echo " -c=CONFIG Which CONFIG should be used." echo " ${_CONFIG_DIR} locates the configs" echo " default=${_ARCH}.conf" echo " -i=IMAGENAME Your IMAGENAME." - echo " -s Save init ramdisk to $(pwd)" - echo " -h This message." + echo " -s Save initramfs to $(pwd)" echo "" - echo "usage: ${_BASENAME} " + echo -e "Usage: \e[1m${_BASENAME} \e[m" exit 0 } diff --git a/usr/lib/archboot/release.sh b/usr/lib/archboot/release.sh index 6900c21be..f66309f22 100644 --- a/usr/lib/archboot/release.sh +++ b/usr/lib/archboot/release.sh @@ -17,12 +17,12 @@ _CONFIG_LOCAL="${_ARCH}-local.conf" _W_DIR="$(mktemp -u archboot-release.XXX)" _usage () { - echo "CREATE ARCHBOOT RELEASE IMAGE" - echo "-----------------------------" + echo -e "\e[1m\e[36mArchboot\e[m\e[1m - Create Archboot Release Image\e[m" + echo -e "\e[1m----------------------------------------\e[m" echo "This will create an archboot release image in ." echo "You can specify a certain with an archboot repository." echo "" - echo "usage: ${_BASENAME} " + echo -e "Usage: \e[1m${_BASENAME} \e[m" exit 0 }