diff options
Diffstat (limited to 'mkinitcpio')
-rw-r--r-- | mkinitcpio | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -39,11 +39,12 @@ usage () echo " -g IMAGE Generate a cpio image as IMAGE. default: no" echo " -a NAME Append to an existing filelist. default: no" echo " -q Quiet output. Default: no" + echo " -H HOOKNAME Output help for hook 'HOOKNAME'." echo " -h This message." exit 1 } -while getopts 'c:k:s:b:g:a:qh' arg; do +while getopts 'c:k:s:b:g:a:qH:h' arg; do case "$arg" in c) CONFIG="$OPTARG" ;; k) KERNELVERSION="$OPTARG" ;; @@ -52,6 +53,10 @@ while getopts 'c:k:s:b:g:a:qh' arg; do g) GENIMG="$OPTARG" ;; a) APPEND="y" FILELIST="$OPTARG" ;; q) QUIET="y" ;; + H) source "${INSTDIR}/${OPTARG}"; + echo "Help for hook '${OPTARG}':" + help + exit 0 ;; h|?) usage ;; *) echo "invalid argument '$arg'"; usage ;; esac |