Package: laptop-net
Version: 2.26-7
Followup-For: Bug #150830

I would like to see support of multiple interfaces for laptop-net (mine 
situation is the network card and wifi card inside my Sony Vaio FE31ZR).

After careful diggind I found that /usr/lib/laptop-net/ifd can handle 
mutiple interfaces by specifing them in the commnd line like this:
/usr/lib/laptop-net/ifd /usr/share/laptop-net/link-change eth0 eth2

When I run it like this both interfaces are monitored and works well. 
But startup script for laptop-net has strange code:
# grep -n eth0 /etc/init.d/laptop-net
55:INTERFACE="${INTERFACE:-eth0}"
#

(offtopic : I stil can force to watch over eth2 interface by these commands:
        /etc/init.d/laptop-net stop
        INTERFACE=eth2 /etc/init.d/laptop-net start
Does this expected ?)

After this ifd detect changes over eth2 too but exec link-change script 
with 'unmanaged' parameter. That is why eth2 does not work for me. This 
is only the one reason for supporting only the one interface. That value 
will be passed to ifd and these interfaces it will monitor. We could 
make list of interfaces to be configurable (eth0 eth2) or make it work 
for all interfaces (all) like this (not tested pseudo code): 
if [ "$INTERFACES" = "all" ]; then
  INTERFACES=`cat /proc/net/dev | awk '{print $1}' | egrep '^(eth|wlan)' | sed 
's,:$,,'`
fi
and then pass them to ifd.

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)

Versions of packages laptop-net depends on:
ii  debconf [debconf-2.0]       1.5.11       Debian configuration management sy
ii  ifupdown                    0.6.8        high level tools to configure netw
ii  libc6                       2.3.6.ds1-10 GNU C Library: Shared libraries
ii  libnet1                     1.1.2.1-2    library for the construction and h
ii  libpcap0.7                  0.7.2-7      System interface for user-level pa
ii  lockfile-progs              0.1.10       Programs for locking and unlocking
ii  module-init-tools           3.3-pre3-1   tools for managing Linux kernel mo
ii  modutils                    2.4.27.0-6   Linux module utilities
ii  net-tools                   1.60-17      The NET-3 networking toolkit

laptop-net recommends no packages.

-- debconf information:
  laptop-net/domain-name:
  laptop-net/split-config-files:
  laptop-net/default-nameserver:
* laptop-net/overwrite-config-files: false
  laptop-net/ip-address:
* laptop-net/mii-supported: true
  laptop-net/netmask:
* laptop-net/use-dhcp: true
  laptop-net/domain-search:
  laptop-net/default-gateway:
* laptop-net/module-name:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to