US Robotics USR2410 Manual de Instalação Página 49

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 67
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 48
5. 15. 1. Special Case: The USR-2410 PC Card 45
Diverting /etc/pcmcia/wlan-ng:
#> dpkg−divert −−rename /etc/pcmcia/wlan−ng
New /etc/pcmcia/wlan-ng:
#!/bin/sh
exit
The next problem is that the standard WLAN tools called by ifup don’thandle the WEP encryption for the linux-
wlang-ng drivers correctly.Wehav e to circumvent this by resticting the interface definition in /etc/network/inter-
faces to the bare minimum and then use our won script to setup the card:
New entry in /etc/pcmcia/wlan-ng:
iface wlan0−pccard inet dhcp
/usr/local/bin/wlan0:
#!/bin/sh
prog=‘basename $0‘
test "X$SUPERCMD" = "X$prog" || exec /usr/bin/super $prog ${1+"$@"}
PATH="/bin:/usr/bin/:usr/local/bin:/sbin:/usr/sbin"
ADDRESS=""
SCHEMEFILE=/var/state/network/scheme.wlan0
DEVICE=wlan0
touch $SCHEMEFILE
./etc/wlan/shared
case "$1" in
load)
modprobe wlan0
;;
unload)
modprobe −r wlan0
;;
up|start)
echo "wlan0: start"
if is_true $WLAN_DOWNLOAD; then
wlan_download $DEVICE
wlan_enable $DEVICE
wlan_source_config $DEVICE
wlan_user_mibs $DEVICE
wlan_wep $DEVICE
if is_true $IS_ADHOC ; then
wlan_adhoc $DEVICE
else
wlan_infra $DEVICE
ifup wlan0 2> /dev/null
;;
down|stop)
echo "wlan0: down"
wlan_disable $DEVICE
ifdown wlan0 2> /dev/null
rmmod −a; rmmod −a
;;
restart)
echo "wlan0: restart"
ifdown wlan0 2> /dev/null
sleep 1
ifup wlan0 2> /dev/null
;;
scheme)
if [ −z "$2" ]; then
cat $SCHEMEFILE | sed "s/−/ /" | awk ’{print $2}’
else
echo "eth0−$" > $SCHEMEFILE
Vista de página 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 66 67

Comentários a estes Manuais

Sem comentários