|
|
|
|
|
Forum dédié aux questions sur les distributions basées sur les sources Important :
quand vous posez une question, n'oubliez pas de nous donner les indications suffisantes pour que nous puissions répondre. En effet, la divination n'est pas le fort du Linuxien averti. Pour une meilleure compréhension, le bon usage de la grammaire et de l'orthographe est fortement encouragé. En particulier, le langage SMS est à éviter absolument. En cas d'abus, il pourra être censuré sans autre forme de procès. Les messages dont le contenu est illégal (incitant à la haine - raciale ou autre, diffamant), ou dont le contenu est sans rapport avec le sujet du forum, ou qui sont parfaitement stupides ou hors sujet seront supprimés sans pitié. Il pourra même être fait appel au fournisseur d'accès du coupable pour faire cesser ses agissements. |
||

Je cherche désesperement à faire marcher aussi ce foutu dongle sous gentoo ^^ En gros le ndiswrapper arrive pas a terme :
(root@mandorallen) (/mnt/rack/wifi linux/Driver/Drivers) # ndiswrapper -l No drivers installed (root@mandorallen) (/mnt/rack/wifi linux/Driver/Drivers) # lsusb Bus 002 Device 005: ID 0cde:0008 Z-Com Bus 002 Device 003: ID 10cb:8003 Eratech Bus 002 Device 001: ID 0000:0000 Bus 001 Device 005: ID 03f0:0122 Hewlett-Packard Bus 001 Device 002: ID 046d:c00c Logitech, Inc. Optical Wheel Mouse Bus 001 Device 001: ID 0000:0000 (root@mandorallen) (/mnt/rack/wifi linux/Driver/Drivers) # ndiswrapper -i WlanUIG.inf Installing wlanuig Parse error in inf. Unable to find section COMMON_NDIS_REG_NT no dev WLAN_USB2.NT.5.1 NT.5.1 (root@mandorallen) (/mnt/rack/wifi linux/Driver/Drivers) # ndiswrapper -l Installed ndis drivers: wlanuig driver present, hardware present (root@mandorallen) (/mnt/rack/wifi linux/Driver/Drivers) # modprobe ndiswrapper FATAL: Error inserting ndiswrapper (/lib/modules/2.6.7/misc/ndiswrapper.ko): Unknown symbol in module, or unknown parameter (see dmesg)
) :
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# © Lea-Linux, Jean-Christophe Cardot <jice(at)lea(dash)linux(dot)org>
#
# livebox This shell script takes care of starting and stopping
# your livebox's wifi dongle and configure it.
#
# chkconfig: 2345 12 88
# description: This startup script configures the Livebox's USB wifi dongle
if [ -f /etc/conf.d/livebox ];then
source /etc/conf.d/livebox
fi
PIDFILE=/etc/dhcpc/dhcpcd-$WLAN.pid
function get_ip() {
ip_wlan=$(ifconfig $WLAN 2>&1 \
| grep "inet adr:" \
| cut -d' ' -f 12 | cut -d':' -f 2)
if [ "$ip_wlan" = "127.0.0.1" ]; then
unset ip_wlan
fi
}
function wifistart() {
# test if already started
unset ip_wlan
get_ip
if [ "x$ip_wlan" != "x" ]; then
echo "Wifi already started!"
exit 0
fi
# make sure dhcpcd is stopped
if [ -s $PIDFILE ] \
&& ps aux | cut -b10-15 | grep -q `cat $PIDFILE`; then
kill -SIGTERM `cat $PIDFILE` 2>&1 >/dev/null
fi
rm -rf $PIDFILE 2>&1 >/dev/null
ebegin "Lancement de NDISWrapper" \
modprobe ndiswrapper
ebegin "Lancement du wifi Livebox" \
iwconfig $WLAN mode managed essid $ESSID key $WEP
ebegin "Obtention d'une adresse IP avec DHCP" \
/sbin/dhcpcd wlan0
get_ip
echo "Adresse IP : $ip_wlan"
}
function wifistop() {
ebegin "Arrêt du wifi Livebox" \
ifconfig $WLAN down
ebegin "Arrêt de NDISWrapper" \
rmmod ndiswrapper
if [ -s $PIDFILE ] \
&& ps aux|cut -b10-15|grep -q `cat $PIDFILE`; then
ebegin "Arrêt de dhcpcd" \
kill -SIGTERM `cat $PIDFILE`
fi
rm -rf $PIDFILE 2>&1 >/dev/null
}
start() {
wifistart
}
stop() {
wifistop
}
restart() {
wifistop
wifistart
}
status() {
if fgrep -q ndiswrapper /proc/modules; then
gprintf "NDISWrapper loaded."
echo
else
gprintf "NDISWrapper not loaded."
echo
fi
if ifconfig 2>&1 | grep -q $WLAN; then
gprintf "$WLAN wireless interface loaded."
echo
else
gprintf "$WLAN wireless interface not loaded."
echo
fi
unset ip_wlan
get_ip
if [ "x$ip_wlan" = "x" ]; then
gprintf "No IP address"
echo
else
gprintf "IP Adress: $ip_wlan"
echo
fi
}#Périphérique WLAN="wlan0" #ESSID de la livebox ESSID="WANADOO-XXXX" #Clef WEP WEP="XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX"