The recent hooks additions are not style compliant (gasp!). Fix this.

We might also want to fix missing copyright headers, but not sure
about that.
---
 examples/hooks/defaultpasswords |    8 ++++----
 examples/hooks/hosts            |    3 +--
 examples/hooks/timezone         |   11 ++++++-----
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/examples/hooks/defaultpasswords b/examples/hooks/defaultpasswords
index c4313cc..71f94fe 100755
--- a/examples/hooks/defaultpasswords
+++ b/examples/hooks/defaultpasswords
@@ -1,9 +1,9 @@
 #!/bin/sh
 #
-# This is an example script that sets the root pasword to a given default
+# This is an example script that sets the root pasword to a given
+# default.
 
-# depending on your version of passwd, chpasswd can use the -e flag to handle 
en encrypted password. you probably want to use that.
+# Note: depending on your version of passwd, chpasswd can use the -e
+# flag to handle en encrypted password. you probably want to use that.
 
 cat $(dirname $0)/confdata/defaultpasswords | chroot $TARGET chpasswd
-
-
diff --git a/examples/hooks/hosts b/examples/hooks/hosts
index 4daf620..9306c30 100755
--- a/examples/hooks/hosts
+++ b/examples/hooks/hosts
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# This is an example script that sets the hostname and hosts file
+# This is an example script that sets the hostname and hosts file.
 
 VMFQDN=$INSTANCE_NAME
 VMHOSTNAME=${VMFQDN%%.*}
@@ -8,4 +8,3 @@ VMHOSTNAME=${VMFQDN%%.*}
 [ x$VMFQDN -eq x$VMHOSTNAME ] && VMFQDN=""
 
 echo "127.0.1.1                $VMFQDN $VMHOSTNAME" >> $TARGET/etc/host
-
diff --git a/examples/hooks/timezone b/examples/hooks/timezone
index 2214c7c..23f38c4 100755
--- a/examples/hooks/timezone
+++ b/examples/hooks/timezone
@@ -1,11 +1,12 @@
 #!/bin/sh
 #
-# This is an example script that sets the timezone to a given default, or to 
the one of the host is none is configured
+# This is an example script that sets the timezone to a given default,
+# or to the one of the host is none is configured.
 
-if [ -r confdata/timezone ]
-then   cp confdata/timezone $TARGET/etc/
-else   cp /etc/timezone $TARGET/etc/
+if [ -r confdata/timezone ]; then
+  cp confdata/timezone $TARGET/etc/
+else
+  cp /etc/timezone $TARGET/etc/
 fi
 
 chroot $TARGET dpkg-reconfigure --frontend noninteractive tzdata
-
-- 
1.7.7.3

Reply via email to