# HG changeset patch # User Eric Joseph-Alexandre # Date 1357340824 -3600 # Node ID b1986b2be1f03a77e2eaf330286aabd116a3b59e # Parent 445b02a1da07f92e35884c9f007680bf6239d51e Fix bug: http://bugs.slitaz.org/?id=71 diff -r 445b02a1da07 -r b1986b2be1f0 etc/init.d/system.sh --- a/etc/init.d/system.sh Mon Dec 31 13:46:05 2012 +0100 +++ b/etc/init.d/system.sh Sat Jan 05 00:07:04 2013 +0100 @@ -131,6 +131,9 @@ if [ "$SCREEN" != "text" ] && [ "$LOGIN_MANAGER" ]; then echo -n "Starting X environment..." /etc/init.d/dbus start >/dev/null + if [ $(/bin/hostname) == '(none)' ];then + /bin/hostname -F /etc/hostname + fi /etc/init.d/$LOGIN_MANAGER start >/dev/null & status fi