diff options
author | Jonathan Bauer | 2014-03-06 14:36:26 +0100 |
---|---|---|
committer | Jonathan Bauer | 2014-03-06 14:36:26 +0100 |
commit | 586b5ce3efac92e2c26412c625f63e7cf3083a5a (patch) | |
tree | 183108f6ac4a236accc12837eef083201f1f8818 /remote | |
parent | [rootfs-stage31] fix hostname (diff) | |
download | tm-scripts-586b5ce3efac92e2c26412c625f63e7cf3083a5a.tar.gz tm-scripts-586b5ce3efac92e2c26412c625f63e7cf3083a5a.tar.xz tm-scripts-586b5ce3efac92e2c26412c625f63e7cf3083a5a.zip |
[rfs-s31] fix hostname
Diffstat (limited to 'remote')
-rwxr-xr-x | remote/rootfs/rootfs-stage31/data/inc/udhcpc-trigger | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/remote/rootfs/rootfs-stage31/data/inc/udhcpc-trigger b/remote/rootfs/rootfs-stage31/data/inc/udhcpc-trigger index 592295cd..dfed3168 100755 --- a/remote/rootfs/rootfs-stage31/data/inc/udhcpc-trigger +++ b/remote/rootfs/rootfs-stage31/data/inc/udhcpc-trigger @@ -86,8 +86,8 @@ if [ -n "$hostname" ]; then echo "..setting hostname $hostname (fqdn: $fqdn).." echo "$hostname" > "/proc/sys/kernel/hostname" echo "$hostname" > "/etc/hostname" - echo "127.0.0.1 localhost" >> "/etc/hosts" - echo "127.0.0.1 $fqdn $hostname" >> "/etc/hosts" + echo "127.0.0.1 localhost" > "/etc/hosts" + echo "127.0.1.1 $fqdn $hostname" >> "/etc/hosts" echo "SLX_HOSTNAME='$hostname'" >> "/run/config" fi |