summaryrefslogtreecommitdiffstats
path: root/init_functions
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2009-06-06 22:47:53 +0200
committerThomas Bächler <thomas@archlinux.org>2009-06-06 22:47:53 +0200
commit7a4bc6aaf49eb55df3e19fb09260ac97023bc901 (patch)
tree8a878036f12c0966ac839e6815c587914d674c0d /init_functions
parent35fea002c27f6c1124a28535e379d7edf34a127e (diff)
downloadmkinitcpio-7a4bc6aaf49eb55df3e19fb09260ac97023bc901.tar.gz
mkinitcpio-7a4bc6aaf49eb55df3e19fb09260ac97023bc901.tar.xz
Add a new file init_functions that contains common functions used in /init and the hooks
Diffstat (limited to 'init_functions')
-rw-r--r--init_functions8
1 files changed, 8 insertions, 0 deletions
diff --git a/init_functions b/init_functions
new file mode 100644
index 0000000..50accc9
--- /dev/null
+++ b/init_functions
@@ -0,0 +1,8 @@
+# This file contains common functions used in init and in hooks
+
+msg () {
+ [ "${quiet}" != "y" ] && echo $@
+}
+err () {
+ echo "ERROR: $@"
+}