Bug#572013: udhcpc: bashism in /usr/share/udhcpc/default.script causes network setup to fail
I got a bug report by private mail. Here's the summary of it:
/usr/share/udhcpc/default.script contains $((metric++)) which seems to
be a bashism although checkbashisms doesn't find it
(http://bugs.debian.org/572006), but dash definitely can't parse it,
since it's not necessary for POSIX conpliance.
This causes causes network setup failures at least in some
cases. (Worked fine for me + checkbashisms didn't find it, so I didn't
notice this bashism when testing that code.)
The easy solution is to use $((metric=metric+1)) instead.
Will check for further occurrences of this bashism inside the busybox
package and add a patch against current SVN to this bug report.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (990, 'unstable'), (600, 'stable'), (500, 'testing'), (110, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-3-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages udhcpc depends on:
ii busybox 1:1.15.3-1 Tiny utilities for small and embed
udhcpc recommends no packages.
udhcpc suggests no packages.
-- no debconf information