Re: [LEDE-DEV] [PATCH 4/5] base-files: add generic board detection preinit script

2017-04-30 Thread Felix Fietkau
On 2017-04-28 14:57, Roman Yeryomin wrote: > Signed-off-by: Roman Yeryomin > --- > package/base-files/files/lib/preinit/03_preinit_board_detect | 11 +++ > 1 file changed, 11 insertions(+) > create mode 100644 >

Re: [LEDE-DEV] [PATCH 1/5] base-files: introduce /lib/functions/board.sh

2017-04-30 Thread Felix Fietkau
On 2017-04-28 22:51, Roman Yeryomin wrote: > On 28 April 2017 at 20:12, Felix Fietkau wrote: >> On 2017-04-28 14:56, Roman Yeryomin wrote: >>> Signed-off-by: Roman Yeryomin >>> --- >>> package/base-files/files/lib/functions/board.sh | 17 + >>> 1

Re: [LEDE-DEV] [PATCH 1/5] base-files: introduce /lib/functions/board.sh

2017-04-30 Thread Felix Fietkau
On 2017-04-30 11:23, Bastian Bittorf wrote: > * Felix Fietkau [30.04.2017 09:30]: >> > +board_name() >> > +{ >> > + sysinfo board_name >> > +} >> > + >> > +board_model() >> > +{ >> > + sysinfo model >> > +} > >> Do we really need board_model() at all? I think it's better to

Re: [LEDE-DEV] [PATCH 1/5] base-files: introduce /lib/functions/board.sh

2017-04-30 Thread Bastian Bittorf
* Felix Fietkau [30.04.2017 09:30]: > > +board_name() > > +{ > > + sysinfo board_name > > +} > > + > > +board_model() > > +{ > > + sysinfo model > > +} > Do we really need board_model() at all? I think it's better to leave the > board_name() function where it is instead of

[LEDE-DEV] [PATCH] procd/rcS: Use /dev/null as stdin

2017-04-30 Thread Michal Sojka
This change ensures that /etc/init.d/* scripts are started with /dev/null as stdin. This is useful in cases where an init.d script reads (e.g. by mistake) from stdin, which a user can perceive as if some characters typed into shell on serial console are "eaten" by something else (i.e. by the