ashceryth wrote: 
> Hello,
> 
> I've set a custom hostname via Tweaks page and want that this name is
> used in dhcp requests. This seems to work for the ethernet interface but
> not for the wifi interface:
> 
> > 
Code:
--------------------
  >   > 
  > 7249 root      0:00 /sbin/udhcpc -b -i eth0 -x hostname:pcp1 -p 
/var/run/udhcpc.eth0.pid
  > 7826 root      0:00 /sbin/udhcpc -b -i wlan0 -x hostname:Kitchen Player -p 
/var/run/udhcpc.wlan0.pid
  > 
--------------------
> > 
> 
> It seems that dhcp.sh in /etc/init.d/ uses /etc/hostname for the
> hostname option:
> 
> > 
Code:
--------------------
  >   > 
  > ...
  > /sbin/udhcpc -b -i $DEVICE -x hostname:$(/bin/hostname) -p 
/var/run/udhcpc.$DEVICE.pid >/dev/null 2>&1 &
  > ...
  > 
--------------------
> > 
> 
> /usr/local/etc/init.d/wifi seems to use the player name:
> 
> > 
Code:
--------------------
  >   > 
  > ...
  > /sbin/udhcpc -b -i $INTERFACE -x hostname:$NAME -p 
/var/run/udhcpc.${INTERFACE}.pid
  > ...
  > 
--------------------
> > 
> 
> Would it be possible to use the hostname here as well? Is there a way
> to edit this script locally so that it persists during reboots?
> 
> Thanks!

Hi ashceryth,

Nice detective work. I agree it would be nice if it was consistent.

What I don't understand is how it hasn't been noticed for such a long
time.

regards
Greg


------------------------------------------------------------------------
Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403
View this thread: http://forums.slimdevices.com/showthread.php?t=113512

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to