Pascal Hibon wrote: 
> Ok, found it. This will probably be interesting to other people so
> here's what I did:
> 
> 
> 1. create the file /opt/eth0.sh and enter this:
> > 
Code:
--------------------
  >   > 
  > #!/bin/sh
  > pkill udhcpc
  > ifconfig eth0 <your ip address> netmask <your netmask> up
  > 
--------------------
> > 
> 
> 2. make it executable: *sudo chmod 775 /opt/eth0.sh*
> 3. edit */opt/bootlocal.sh* and add */opt/eth0.sh*
> 4. make a backup (did that through the home page of the player)
> 5. reboot and done

Hi Pascal Hibon,

Yes, static IP pops up often enough that it should be an option and as
Steen agrees we'll add it onto the list of things todo.

In the mean time (untested), piCore has an option "nodhcp" which could
be added to cmdline.txt. This will prevent dhcp from starting in the
first place so it will speed up the boot process. It might also mean the
script will become a one liner so the command could just be placed in
bootlocal.sh :confused:

regards
Greg


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

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

Reply via email to