From: Michael Biebl Date: Wed, 3 Aug 2011 18:03:01 +0000 (+0200) Subject: Use printf instead of echo X-Git-Tag: 36-1~10 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cdfffda1e65e23e704511f6ead7f24d631fcb59;p=systemd Use printf instead of echo echo "\n" is not posix shell compliant. --- diff --git a/debian/systemd.postinst b/debian/systemd.postinst index 73e2a11d..04f78906 100644 --- a/debian/systemd.postinst +++ b/debian/systemd.postinst @@ -8,11 +8,11 @@ fi # Do a one-time migration of the local time setting if dpkg --compare-versions "$2" lt "33-1"; then - if [ -f /etc/default/rcS ]; + if [ -f /etc/default/rcS ]; then . /etc/default/rcS fi if [ "$UTC" = "no" ] && [ ! -e /etc/adjtime ]; then - echo "0.0 0 0.0\n0\nLOCAL" > /etc/adjtime + printf "0.0 0 0.0\n0\nLOCAL" > /etc/adjtime fi fi