From 6a580c30db7f0dceb91a1be8d754065f1f311b21 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Thu, 1 Aug 2024 10:45:08 +0200 Subject: [PATCH] add usage to cpio --- usr/bin/archboot-hwsim.sh | 8 ++++---- usr/lib/archboot/cpio/cpio.sh | 24 +++++++++++------------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/usr/bin/archboot-hwsim.sh b/usr/bin/archboot-hwsim.sh index a2b047494..8b9a9f8a2 100755 --- a/usr/bin/archboot-hwsim.sh +++ b/usr/bin/archboot-hwsim.sh @@ -7,13 +7,13 @@ . /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." - 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 "- 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} \e[m" exit 0 } diff --git a/usr/lib/archboot/cpio/cpio.sh b/usr/lib/archboot/cpio/cpio.sh index ef8a9e80f..3a131cf65 100644 --- a/usr/lib/archboot/cpio/cpio.sh +++ b/usr/lib/archboot/cpio/cpio.sh @@ -3,25 +3,23 @@ # archboot-cpio.sh - modular tool for building an initramfs image # optimized for size and speed # by Tobias Powalowski - +. /usr/lib/archboot/common.sh _CONFIG="" _CPIO=/usr/lib/archboot/cpio/hooks _GENERATE_IMAGE="" _TARGET_DIR="" _usage() { - cat < Use file - -g Generate cpio image and write to specified - -d Generate image into - -usage: ${0##*/} -EOF + echo -e "\e[1m\e[36mArchboot\e[m\e[1m - Cpio\e[m" + echo -e "\e[1m----------------\e[m" + echo "Tool for creating an archboot initramfs image." + echo + echo " -h Display this message and exit" + echo " -c Use file" + echo " -g Generate cpio image and write to specified " + echo " -d Generate image into " + echo + echo -e "Usage: \e[1m${_APPNAME} \e[m" exit 0 }