Hi,
although Jeff King already kindly provided a patch in #572008, I
prefer the following slightly more compact and complete patch patch
against r62547. Verified that this syntax works fine with dash, ksh,
mksh, bash and zsh.
Index: changelog
===================================================================
--- changelog (revision 62547)
+++ changelog (working copy)
@@ -1,3 +1,10 @@
+busybox (1:1.15.3-2) unstable; urgency=low
+
+ [ Axel Beckert ]
+ * Fix bashism in udhcpc default.script (Closes: #572008, #572013)
+
+ -- Axel Beckert <abe@debian.org> Mon, 01 Mar 2010 01:04:13 +0100
+
busybox (1:1.15.3-1) unstable; urgency=low
[ Bastian Blank ]
Index: tree/udhcpc/usr/share/udhcpc/default.script
===================================================================
--- tree/udhcpc/usr/share/udhcpc/default.script (revision 62547)
+++ tree/udhcpc/usr/share/udhcpc/default.script (working copy)
@@ -19,7 +19,7 @@
metric=0
for i in $router; do
- /sbin/route add default gw $i dev $interface metric $((metric++))
+ /sbin/route add default gw $i dev $interface metric $((metric=metric+1))
done
fi
Regards, Axel
--
,''`. | Axel Beckert <abe@debian.org>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
`- | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
Attachment:
signature.asc
Description: Digital signature