Home > network, unix/linux > Debian Lenny Intel(R) Pro/Wireless

Debian Lenny Intel(R) Pro/Wireless

Debian Lenny Intel(R) Pro/Wireless

After you install Debian using netInstall using wire interface you can install the firmware that support your wireless interface this is example script:

#!/bin/bash
# Debian Lenny Wireless script for Intel(R) Pro/Wireless 4954 or 3945
# Author: Albertux (Alberto Isaac Ayala Esquivias)
# Mail: <albertoi7@gmail.com>
# Web: http://Albertux.AyalaSoft.com
 
if [[ $EUID -ne 0 ]]; then 
  echo "You must be a root user" 2>&1
  exit 1
fi
 
for m in iwl4965 iwl3945
do
  model=$(echo `dmesg  | grep $m | awk ' { print $3 }' |  wc -l`)
  if [ $model -ne 0 ]; then
    model=$m
    break;
  fi
done
 
if [ "$model" != "$m" ]; then
  echo -e "\e[01;33mWARNING!"
  echo -e "\e[01;33mDoesn't have Intel(R) PRO/Wireless 4965 or 3945 Models\e[00m"
  exit;
else
  echo -e "\e[01;32mYou have Intel(R) PRO/Wireless $model\e[00m"
fi
 
firmware=$(echo `dpkg -l | grep firmware-iwlwifi | awk '{ print $1 }'`)
mod=$(echo `lsmod  | awk '{ print $1 }'  | grep $model`)
 
if [ "$firmware" != "ii" ]; then
  echo -e "Install firmware ..."
  apt-get install firmware-iwlwifi
fi
 
if [ "$model" != "$mod" ]; then
  echo -e "Install module ..."
  modprobe $model
fi
echo -e "\nname\t  description\n"
iwconfig
echo -n "Name of the interface with wireless extensions: "
read iface
 
ifconfig $iface up
clear
echo -e "Scanning Wireless ..."
iwlist $iface scanning 
 
echo -n "essid: "
read essid
 
echo -n "Need Key (y/n): "
if [ "$op" = "n" ]; then
  iwconfig $iface essid "$essid"
else
  echo -n "key: "
  read key
  iwconfig $iface essid "$essid" key "$key"
fi
 
echo -n "Static IP? (y/n): "
read op
 
if [ "$op" = "n" ]; then
  dhclient $iface
else
 echo -n "What ip you want: "
 read ip
 ifconfig $iface $ip
fi
 
echo -n "Gateway: "
read gw
 
route add default gw $gw $iface
Categories: network, unix/linux Tags: , ,
  1. Andrew Malcolmson
    June 6th, 2009 at 18:34 | #1
    Surfing Debian IceWeasel 3.0.6 Debian IceWeasel 3.0.6 on Debian GNU/Linux Debian GNU/Linux

    firmware-iwlwifi is included in kernels after 2.6.24 so you don’t need this package any more.

    Thanks

  2. July 16th, 2009 at 02:56 | #2
    Surfing Firefox 3.0.11 Firefox 3.0.11 on Ubuntu Ubuntu

    Thanks for the advice

  1. No trackbacks yet.

Switch to our mobile site