Package: wireless-tools
Version: 27-1
Severity: normal

# ip l s dev dummy0 up
# ip l s dummy0 name --help
# ip l l --help
6: --help: <BROADCAST,NOARP> mtu 1500 qdisc noqueue 
    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff

... oops, how do I change/list the device parameters with
iwonfig/iwlist (I know dummy0 is not a wireless device, but I let's
neglect this for now, OK)?

# iwconfig -- --help
Error : unrecognised wireless request "--help"
# iwlist -- --help
iwlist: unknown command `--help'

-- both interpret `--' as a normal interface name.

The problem is more severe then it seems at the first glance: At the
very moment, I'm trying to write a portable script that will check for a
device of a given name being present on a system.  The admin could have
set the device name to virtually anything, using ip(8), but ip isn't
present on most systems, and in fact it could have been removed after
the device name change, even on this system.  I have no way at all to
access this device, from a shell script.

Note ifconfig has exactly the same problem (which makes things worse).


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (700, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.28-jan
Locale: LANG=C, LC_CTYPE=cs_CZ.ISO-8859-2 (charmap=ISO-8859-2)

Versions of packages wireless-tools depends on:
ii  libc6                       2.3.2.ds1-18 GNU C Library: Shared libraries an
ii  libiw27                     27-1         Wireless tools - library

-- no debconf information

-- 
 )^o-o^|    jabber: [EMAIL PROTECTED]
 | .v  K    e-mail: jjminar FastMail FM
 `  - .'     phone: +44(0)7981 738 696
  \ __/Jan     icq: 345 355 493
 __|o|__Minář  irc: [EMAIL PROTECTED]

Attachment: pgp3tdMhPI6VS.pgp
Description: PGP signature

Reply via email to