summaryrefslogtreecommitdiffstats
path: root/mkinitcpio
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-05-22 16:03:12 +0200
committerDave Reisner <dreisner@archlinux.org>2012-06-01 15:37:47 +0200
commitb44e4e7cfd88fc5e2bd95fa9d0dbc36b1bd64483 (patch)
tree27fa4df1eeb3ea107638fdb8c6b9f6b520a9be55 /mkinitcpio
parent015d482ce8394acd2f8bc9da2cd70339ebbcc3f9 (diff)
downloadmkinitcpio-b44e4e7cfd88fc5e2bd95fa9d0dbc36b1bd64483.tar.gz
mkinitcpio-b44e4e7cfd88fc5e2bd95fa9d0dbc36b1bd64483.tar.xz
add hookpoints to --hookhelp output
Generalize the awk program embedded in add_runscript and create a separate function which can be reused to display the specific hooks that a script has. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'mkinitcpio')
-rwxr-xr-xmkinitcpio1
1 files changed, 1 insertions, 0 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 8762991..7497b7c 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -188,6 +188,7 @@ while :; do
fi
msg "Help for hook '$1':"
help
+ list_hookpoints "$script"
exit 0 ;;
-L|--listhooks)
msg "Available hooks"