Make all shell scripts using /bin/bash instead /bin/sh to be able to FAI's environment.
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 18-timesetup
index e3d27a6..de37666 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # Filename:      /etc/grml/fai/config/scripts/GRMLBASE/18-timesetup
 # Purpose:       apply default time and timezone settings
 # Authors:       (c) Thomas Lehmann <thomas.lehmann@kvt.de>
@@ -10,6 +10,7 @@ set -u
 set -e
 
 # tell if hwclock is running in UTC or local time
+# by default it's set to UTC=yes, we usually want UTC=no
 if [ -n "$UTC" ] ; then
    echo "Setting hwclock parameter UTC to $UTC"
    sed -i "s|^UTC=.*$|UTC="$UTC"|" $target/etc/default/rcS