[arch-projects] [mkinitcpio][PATCH 1/2] shutdown: add vim modeline, fix whitespacing
Dave Reisner
d at falconindy.com
Sat Mar 24 22:20:04 EDT 2012
Make this consistent with the rest of the codebase.
Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
shutdown | 28 +++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)
diff --git a/shutdown b/shutdown
index 39bcb97..aad0198 100755
--- a/shutdown
+++ b/shutdown
@@ -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
--
1.7.9.4
More information about the arch-projects
mailing list