[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#572013: bashism in /usr/share/udhcpc/default.script causes network setup to fail

Package: udhcpc
Version: 1:1.15.3-1
Severity: normal

The proposed fix -- $((metric += 1)) -- doesn't have the same
semantics.  The routing table metric will start at 1 rather than 0.

You need to increment $metric in a separate command, after using it in
the route command:

    for i in $router; do
        /sbin/route add default gw $i dev $interface metric $metric
        metric=$((metric + 1))

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-4-amd64 (SMP w/8 CPU cores)
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

Reply to: