Whitespace/style cleanups
authorIustin Pop <iustin@google.com>
Sat, 21 Apr 2012 09:57:04 +0000 (11:57 +0200)
committerIustin Pop <iustin@google.com>
Tue, 24 Apr 2012 08:23:58 +0000 (10:23 +0200)
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.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>

examples/hooks/defaultpasswords
examples/hooks/hosts
examples/hooks/timezone

index c4313cc..71f94fe 100755 (executable)
@@ -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
-
-
index 4daf620..9306c30 100755 (executable)
@@ -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
-
index 2214c7c..23f38c4 100755 (executable)
@@ -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
-