28.03.2024, 17:28 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]
Hinweis:
Seit Kanotix-2005-4 wurde auf udev umgestellt. Seitdem funktioniert das erzeugte Script ma111?
nicht mehr automatisch, jedoch wenn es "händisch" aufgerufen wird.

Den USB-Netzwerkadapter MA111 kann man mit diesem Script hotplugfähig machen:

:code:(bash)
#! /bin/sh
# Installiert eine Hotplug-Erkennung fuer den USB-Netzwerkadapter NETGEAR MA111

FILE=ma111?
SCRIPT=/etc/hotplug/usb/$FILE
DATA=/etc/hotplug/usb/$FILE.usermap

cat >$SCRIPT
"EndOfScript?"
#! /bin/sh
# Script zum Starten der Initialisierung eines NETGEAR MA111
# Wird vom Hotplug-System automatisch aufgerufen.

IP=192.168.0.123
GATEWAY=192.168.0.1
WEPKEY=20:15:19:78:23:11:18:58:10:11:10:50:02
SID=elfenland

modprobe prism2_usb prism2_doreset=1
wlanctl-ng wlan0? lnxreq_ifstate ifstate=enable
wlanctl-ng wlan0? lnxreq_autojoin ssid=$SID authtype=opensystem
wlanctl-ng wlan0? dot11req_mibget mibattribute=dot11PrivacyOptionImplemented?
wlanctl-ng wlan0? lnxreq_hostwep decrypt=true encrypt=true
wlanctl-ng wlan0? dot11req_mibset mibattribute=dot11WEPDefaultKeyID?=0
wlanctl-ng wlan0? dot11req_mibset mibattribute=dot11PrivacyInvoked?=true
wlanctl-ng wlan0? dot11req_mibset mibattribute=dot11WEPDefaultKey0?=$WEPKEY
pump -i wlan0? --no-bootp
route add default gw $GATEWAY
EndOfScript?

chmod 700 $SCRIPT
echo $SCRIPT wurde installiert

cat >$DATA
EOS
#script matchflag vendor product ...
$FILE 0x0003 0x0846 0x4110 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
EOS
chmod 600 $DATA
echo $DATA wurde erzeugt
if [ -z "$EDITOR" ] ; then
EDITOR=vi
fi
$EDITOR $SCRIPT
:code:
Das Script ruft am Ende einen Editor auf, damit die IP-Adresse, Gateway usw.
angepasst werden kann.
XML Revisions of $tag
Seiten-History :: Letzter Editor : HaMaToMa :: Eigentümer : HaMaToMa ::
Powered by pnWikka 1.0
 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.