Skip to content

Commit

Permalink
Fix hstname setting as per go2null suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
mavrothal committed Dec 11, 2013
1 parent cb21bbd commit 1a1c50e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion woof-code/rootfs-skeleton/usr/sbin/hostname-set
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ $(gettext '\ZbNOTE:\ZB There did appear to be an active network connection, that

hostname $NEW_HOSTNAME
echo -n $NEW_HOSTNAME > /etc/hostname
echo "127.0.0.1 localhost $NEW_HOSTNAME" > /tmp/hostname-set-hosts
echo "127.0.0.1 $NEW_HOSTNAME localhost" > /tmp/hostname-set-hosts
grep -vw 'localhost' /etc/hosts >> /tmp/hostname-set-hosts
[ -s /tmp/hostname-set-hosts ] && mv -f /tmp/hostname-set-hosts /etc/hosts
M_h1="$(gettext 'Set Hostname: done')"
Expand Down

0 comments on commit 1a1c50e

Please sign in to comment.