summaryrefslogtreecommitdiffstats
path: root/install/consolefont
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-05-11 23:21:36 +0200
committerDave Reisner <dreisner@archlinux.org>2012-05-18 15:39:04 +0200
commitb7c1887306c1067984b5e5b564f25a12631b8162 (patch)
tree9c8320a2f99da70ce539d744e3c047f22a0ca33b /install/consolefont
parent261b731e8fb918309f2740b5262d9678378491fa (diff)
downloadmkinitcpio-b7c1887306c1067984b5e5b564f25a12631b8162.tar.gz
mkinitcpio-b7c1887306c1067984b5e5b564f25a12631b8162.tar.xz
use new API for install hooks
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'install/consolefont')
-rw-r--r--install/consolefont6
1 files changed, 1 insertions, 5 deletions
diff --git a/install/consolefont b/install/consolefont
index cefbc45..8127502 100644
--- a/install/consolefont
+++ b/install/consolefont
@@ -1,8 +1,6 @@
#!/bin/bash
build() {
- local file ext
-
# subshell to avoid namespace pollution
(
for cfg in /etc/{rc,vconsole}.conf; do
@@ -29,9 +27,7 @@ build() {
warning "consolefont: no font found in configuration"
exit 1
fi
- )
-
- (( $? == 0 )) && SCRIPT=consolefont
+ ) && add_runscript
}
help() {