Author: titmuss
Date: Mon Jun 9 09:54:11 2008
New Revision: 2551
URL: http://svn.slimdevices.com?rev=2551&root=Jive&view=rev
Log:
Bug: 5919
Description:
Send 'SqueezeboxController' as the hostname when requesting a dhcp address.
Added:
7.1/trunk/squeezeos/src/system/filesystem/etc/hostname
Modified:
7.1/trunk/squeezeos/src/system/busybox_1_7_stable/.config
7.1/trunk/squeezeos/src/system/busybox_1_7_stable/networking/ifupdown.c
7.1/trunk/squeezeos/src/system/filesystem/Makefile
7.1/trunk/squeezeos/src/system/filesystem/etc/init.d/rcS
Modified: 7.1/trunk/squeezeos/src/system/busybox_1_7_stable/.config
URL:
http://svn.slimdevices.com/7.1/trunk/squeezeos/src/system/busybox_1_7_stable/.config?rev=2551&root=Jive&r1=2550&r2=2551&view=diff
==============================================================================
--- 7.1/trunk/squeezeos/src/system/busybox_1_7_stable/.config (original)
+++ 7.1/trunk/squeezeos/src/system/busybox_1_7_stable/.config Mon Jun 9
09:54:11 2008
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
# Busybox version: 1.7.1.svn
-# Tue Apr 22 14:09:58 2008
+# Mon Jun 9 17:42:03 2008
#
CONFIG_HAVE_DOT_CONFIG=y
Modified:
7.1/trunk/squeezeos/src/system/busybox_1_7_stable/networking/ifupdown.c
URL:
http://svn.slimdevices.com/7.1/trunk/squeezeos/src/system/busybox_1_7_stable/networking/ifupdown.c?rev=2551&root=Jive&r1=2550&r2=2551&view=diff
==============================================================================
--- 7.1/trunk/squeezeos/src/system/busybox_1_7_stable/networking/ifupdown.c
(original)
+++ 7.1/trunk/squeezeos/src/system/busybox_1_7_stable/networking/ifupdown.c Mon
Jun 9 09:54:11 2008
@@ -151,6 +151,15 @@
return ifd->option[i].value;
}
}
+
+ /* gethostname if it is not in the interface definition */
+ if (strncmpz(id, "hostname", idlen) == 0) {
+ static char hostname[HOST_NAME_MAX + 1];
+ if (gethostname(hostname, HOST_NAME_MAX) == 0) {
+ return hostname;
+ }
+ }
+
return NULL;
}
Modified: 7.1/trunk/squeezeos/src/system/filesystem/Makefile
URL:
http://svn.slimdevices.com/7.1/trunk/squeezeos/src/system/filesystem/Makefile?rev=2551&root=Jive&r1=2550&r2=2551&view=diff
==============================================================================
--- 7.1/trunk/squeezeos/src/system/filesystem/Makefile (original)
+++ 7.1/trunk/squeezeos/src/system/filesystem/Makefile Mon Jun 9 09:54:11 2008
@@ -78,3 +78,4 @@
install etc/network/if_mapping ${PREFIX}/etc/network
install etc/network/udhcpc_action ${PREFIX}/etc/network
install etc/network/wpa_action ${PREFIX}/etc/network
+ install etc/hostname ${PREFIX}/etc/hostname
Added: 7.1/trunk/squeezeos/src/system/filesystem/etc/hostname
URL:
http://svn.slimdevices.com/7.1/trunk/squeezeos/src/system/filesystem/etc/hostname?rev=2551&root=Jive&view=auto
==============================================================================
--- 7.1/trunk/squeezeos/src/system/filesystem/etc/hostname (added)
+++ 7.1/trunk/squeezeos/src/system/filesystem/etc/hostname Mon Jun 9 09:54:11
2008
@@ -1,0 +1,1 @@
+SqueezeboxController
Modified: 7.1/trunk/squeezeos/src/system/filesystem/etc/init.d/rcS
URL:
http://svn.slimdevices.com/7.1/trunk/squeezeos/src/system/filesystem/etc/init.d/rcS?rev=2551&root=Jive&r1=2550&r2=2551&view=diff
==============================================================================
--- 7.1/trunk/squeezeos/src/system/filesystem/etc/init.d/rcS (original)
+++ 7.1/trunk/squeezeos/src/system/filesystem/etc/init.d/rcS Mon Jun 9
09:54:11 2008
@@ -6,6 +6,12 @@
/bin/mount -t ramfs ramfs /tmp
/bin/mount -t ramfs ramfs /var
mkdir /var/shm /var/log /var/run
+
+
+# Set hostname
+if [ -f /etc/hostname ]; then
+ /bin/hostname -F /etc/hostname
+fi
# Mount SD card
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins