From d508f0e4bb80883de30fb4f171950032f4c5f9d8 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 1 Sep 2014 16:48:05 +0200 Subject: remove trailing whitespace --- hook/hostname | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hook') diff --git a/hook/hostname b/hook/hostname index 6421987..a612fef 100644 --- a/hook/hostname +++ b/hook/hostname @@ -11,7 +11,7 @@ run_latehook() { msg ":: Setting hostname to random string..." hostname="$(cut -d- -f1 < /proc/sys/kernel/random/boot_id)" fi - + echo -n "${hostname}" > "${newroot}/etc/hostname" sed -i "/^127.0.0.1/s/$/\t${hostname}/" "${newroot}/etc/hosts" } -- cgit v1.2.3-70-g09d2