Re: [OpenWrt-Devel] Adding entry to /etc/hosts

2011-06-10 Thread Roberto Riggio
Hi, this look perfect for the uci-defaults file. I did not know about this section. Thanks Il 10/06/2011 14:28, Jo-Philipp Wich ha scritto: Hi, without knowing the details here I would argue that a "config domain" entry in /etc/config/dhcp may be better due to the following reasons: - I

Re: [OpenWrt-Devel] Adding entry to /etc/hosts

2011-06-10 Thread Jo-Philipp Wich
Hi, without knowing the details here I would argue that a "config domain" entry in /etc/config/dhcp may be better due to the following reasons: - I believe users expect /etc/hosts to be unmanaged, means nothing writes in there - The domain entries in /etc/config/dhcp appear in the gui and

Re: [OpenWrt-Devel] Adding entry to /etc/hosts

2011-06-10 Thread Roberto Riggio
Hi, I would like to have a new entry like: 127.0.0.1 my_name after a package is installed. the package that i'm installing actually runs an embedded web server. In this way if I'm attached to the router using the lan I can point the browser to http://my_name/ instead of http://10.0.0.1/ R.

Re: [OpenWrt-Devel] Adding entry to /etc/hosts

2011-06-10 Thread Outback Dingo
On Fri, Jun 10, 2011 at 7:56 AM, Roberto Riggio < roberto.rig...@create-net.org> wrote: > Hi, > > which is the openwrt way to have a particular package to add > an entry to /etc/hosts at build or install time? Is it ok to add an > echo into a uci-defaults file? > you could just add it to package

Re: [OpenWrt-Devel] Adding entry to /etc/hosts

2011-06-10 Thread John Crispin
On 10/06/11 13:56, Roberto Riggio wrote: > Hi, > > which is the openwrt way to have a particular package to add > an entry to /etc/hosts at build or install time? Is it ok to add an > echo into a uci-defaults file? > > R. > hi Roberto, can you give an exymple of where you want to do this ? Jo

[OpenWrt-Devel] Adding entry to /etc/hosts

2011-06-10 Thread Roberto Riggio
Hi, which is the openwrt way to have a particular package to add an entry to /etc/hosts at build or install time? Is it ok to add an echo into a uci-defaults file? R. -- Roberto Riggio, Ph.D. CREATE-NET Network& Security Solutions for Pe