Package: ifupdown Version: 0.6.8+nmu1 Followup-For: Bug #430638
I'm writing a script around ifupdown to handle automatic switching from wireless to wired interface. I'm using a simple /sbin/ifup foo to set the interfaces, but unfortunately ifupdown always returns code 0 even when it fails to configure an interface eg. # ifup foo Ignoring unknown interface foo=foo. # echo $? 0 Could ifupdown be extended to return some useful exit codes that we can use in external scripts? -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.28.7 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=en_GB.ISO-8859-15 (charmap=ISO-8859-15) Shell: /bin/sh linked to /bin/dash Versions of packages ifupdown depends on: ii libc6 2.9-4 GNU C Library: Shared libraries ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip ii net-tools 1.60-22 The NET-3 networking toolkit ifupdown recommends no packages. Versions of packages ifupdown suggests: ii dhcp-client 3.1.1-6 DHCP client transitional package ii dhcp3-client 3.1.1-6 DHCP client ii iproute 20090115-1 networking and traffic control too pn ppp <none> (no description available) -- debconf information: ifupdown/convert-interfaces: true -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org