diff options
author | Christian Hesse <mail@eworm.de> | 2014-09-01 16:48:05 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-09-01 16:48:05 +0200 |
commit | d508f0e4bb80883de30fb4f171950032f4c5f9d8 (patch) | |
tree | 3ab6ff75a2f06451f64e50f2a453e8260eb0d161 /hook | |
parent | acf0df3ca880eb4e5385fcdac21b4c9c920f8b4a (diff) | |
download | mkinitcpio-hostname-d508f0e4bb80883de30fb4f171950032f4c5f9d8.tar.gz mkinitcpio-hostname-d508f0e4bb80883de30fb4f171950032f4c5f9d8.tar.zst |
remove trailing whitespace
Diffstat (limited to 'hook')
-rw-r--r-- | hook/hostname | 2 |
1 files changed, 1 insertions, 1 deletions
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" } |