slitaz-boot-scripts diff etc/init.d/system.sh @ rev 324
Fix bug: http://bugs.slitaz.org/?id=71
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sat Jan 05 00:07:04 2013 +0100 (2013-01-05) |
parents | b08c444c5675 |
children | 6985bc31569e |
line diff
1.1 --- a/etc/init.d/system.sh Mon Oct 01 15:10:59 2012 +0200 1.2 +++ b/etc/init.d/system.sh Sat Jan 05 00:07:04 2013 +0100 1.3 @@ -131,6 +131,9 @@ 1.4 if [ "$SCREEN" != "text" ] && [ "$LOGIN_MANAGER" ]; then 1.5 echo -n "Starting X environment..." 1.6 /etc/init.d/dbus start >/dev/null 1.7 + if [ $(/bin/hostname) == '(none)' ];then 1.8 + /bin/hostname -F /etc/hostname 1.9 + fi 1.10 /etc/init.d/$LOGIN_MANAGER start >/dev/null & 1.11 status 1.12 fi