summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-06-07 21:42:39 +0200
committerDave Reisner <d@falconindy.com>2011-06-16 22:16:47 +0200
commit8ac91b12cebd54a7eb133cbad4592d497442bd73 (patch)
tree44c265442ee711d4b13d7518b3dda11ecc531e2e
parent26353278549c680e252e407e75ce4ab3fda3386c (diff)
downloadmkinitcpio-8ac91b12cebd54a7eb133cbad4592d497442bd73.tar.gz
mkinitcpio-8ac91b12cebd54a7eb133cbad4592d497442bd73.tar.xz
use consistent vim modelines
This also adds a /bin/bash shebang to functions. While not technically necessary, this ensures that vim gives us the correct syntax highlight file. Signed-off-by: Dave Reisner <d@falconindy.com>
-rw-r--r--functions3
-rw-r--r--init2
-rw-r--r--init_functions2
-rwxr-xr-xmkinitcpio3
4 files changed, 9 insertions, 1 deletions
diff --git a/functions b/functions
index 9b9d66d..d9abf46 100644
--- a/functions
+++ b/functions
@@ -1,3 +1,5 @@
+#!/bin/bash
+
msg () { [ "${QUIET}" = "n" ] && echo $@; }
err () { echo "ERROR: $@" >&2; }
die () { echo "FATAL: $@" >&2; cleanup; exit 1; }
@@ -266,4 +268,5 @@ parse_hook() {
add_file "${HOOKDIR}/${SCRIPT}" "/hooks/${SCRIPT}"
fi
}
+
# vim: set ft=sh ts=4 sw=4 et:
diff --git a/init b/init
index c5f15f7..6c8f7d7 100644
--- a/init
+++ b/init
@@ -120,3 +120,5 @@ for d in proc sys dev run; do
fi
done
exec env -i TERM=$TERM /sbin/switch_root -c /dev/console /new_root ${init} "$@"
+
+# vim: set ft=sh ts=4 sw=4 et:
diff --git a/init_functions b/init_functions
index ef938b4..8e232d7 100644
--- a/init_functions
+++ b/init_functions
@@ -142,3 +142,5 @@ default_mount_handler() {
fi
mount ${fstype:+-t ${fstype}} -o ${rwopt}${rootflags:+,${rootflags}} "${root}" "$1"
}
+
+# vim: set ft=sh ts=4 sw=4 et:
diff --git a/mkinitcpio b/mkinitcpio
index 51c82b6..c9a7aa8 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -337,4 +337,5 @@ fi
cleanup
exit ${status}
-#vim:set ft=sh ts=4 sw=4 noet:
+
+# vim: set ft=sh ts=4 sw=4 et: