[OpenWrt-Devel] fix endian bug in ddns-scripts

2009-01-17 Thread Eric Bishop
This patch fixes a bug which prevents ddns-scripts, which I wrote about a year ago, from working properly on big-endian systems. Fixes ticket #4294 Specifically, this fixes a defect in the shell_get script. An alternative strategy would be to remove shell_get altogether, as newer versions of bus

Re: [OpenWrt-Devel] [PATCH] start mpd normally

2009-01-17 Thread Stefan Monnier
>> +if [ -x /bin/nice ]; then > maybe this is a better abstraction: > which nice >/dev/null && { Fine by me (I don't use it myself because it's less standard, and because I know the kind of input it returns on stdout, but not the kind of status it returns). >> +# This has rea

Re: [OpenWrt-Devel] HOME set in /etc/profile

2009-01-17 Thread Stefan Monnier
>> When is the following line from /etc/profile >> export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6) >> ever useful? > if $USER != 'root' ? I use many users other than `root' on my OpenWRT machine and have never needed the above line. So if that can be useful, it's not just

[OpenWrt-Devel] Help on initramfs usage

2009-01-17 Thread Luigi Mantellini
Hi people, I'm working on a mips based board. I need to create a single file image (uimage+filesystem) to load on my system (I can choice the formats). I have the necessity to use a initramfs with a minimal busybox and some support file to prepare the final root filesystem. Which is the best way

Re: [OpenWrt-Devel] [PATCH] start mpd normally

2009-01-17 Thread john
which nice >/dev/null && { might be nicer, but imho will eat more cpu cycles than a cmd built into shell so i think the original patch might not be the cleanest but certainly cpu-cycle optimal solution -- John Crispin hacking, coding, etc blogic on irc ___ __

Re: [OpenWrt-Devel] [PATCH] start mpd normally

2009-01-17 Thread Bastian Bittorf
* Stefan Monnier [17.01.2009 05:45]: > +if [ -x /bin/nice ]; then maybe this is a better abstraction: which nice >/dev/null && { ... } > +# This has real-time constraints, so let's at least tell the OS > +# that this should have higher priority to avoid s

Re: [OpenWrt-Devel] HOME set in /etc/profile

2009-01-17 Thread Bastian Bittorf
* Stefan Monnier [17.01.2009 05:00]: > When is the following line from /etc/profile > > export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6) > > ever useful? if $USER != 'root' ? or $USER is unset - is this possible at this stage? bye, Bastian signature.asc Description: