slitaz-boot-scripts 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 | 445b02a1da07 |
children | 03d0b5dd9213 |
files | etc/init.d/system.sh |
line diff
1.1 --- a/etc/init.d/system.sh Mon Dec 31 13:46:05 2012 +0100 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