diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-03-24 23:34:17 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-03-26 03:13:15 +0200 |
commit | 78a6fad8f45cc32735b8e17a5df039854a83ed58 (patch) | |
tree | 06be85fb24fd923d45db70f2e659fe4b0628d570 | |
parent | 69a93873e124fed7fa4d6aaf7f76090f81433954 (diff) | |
download | mkinitcpio-78a6fad8f45cc32735b8e17a5df039854a83ed58.tar.gz mkinitcpio-78a6fad8f45cc32735b8e17a5df039854a83ed58.tar.xz |
shutdown: add vim modeline, fix whitespacing
Make this consistent with the rest of the codebase.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-x | shutdown | 28 |
1 files changed, 15 insertions, 13 deletions
@@ -3,24 +3,26 @@ findmnt -Rruno TARGET /oldroot | awk ' BEGIN { i = 0 } ! /^\/(proc|dev|sys)/ { - i++ - mounts[i] = $0 + i++ + mounts[i] = $0 } END { - for (j = i; j > 0; j--) { - print mounts[j] - } + for (j = i; j > 0; j--) { + print mounts[j] + } } ' | while read -r mount; do - umount -l "$mount" + umount -l "$mount" done case $1 in - poweroff|shutdown|halt) - "$1" -f - ;; - *) - type kexec >/dev/null && kexec -e - reboot -f - ;; + poweroff|shutdown|halt) + "$1" -f + ;; + *) + type kexec >/dev/null && kexec -e + reboot -f + ;; esac + +# vim: ft=sh ts=4 sw=4 |