Added install script (in Makefile) and the initial version of the

/etc/pcmcia scripts.
This commit is contained in:
mark 2000-01-13 19:48:09 +00:00
parent 36719d6c14
commit 0da8d52000
4 changed files with 107 additions and 0 deletions

View File

@ -0,0 +1,29 @@
include ../../config.mk
all:
echo "Nothing to do"
clean:
echo "Nothing to do"
install:
if [ -f $(PCMCIA_DIR)/wlan-ng ]; then \
mv -f $(PCMCIA_DIR)/wlan-ng $(PCMCIA_DIR)/wlan-ng.O ; \
fi ; \
cp -p wlan-ng $(PCMCIA_DIR) ; \
chmod +x $(PCMCIA_DIR)/wlan-ng ; \
if [ -f $(PCMCIA_DIR)/wlan-ng.opts ]; then \
mv -f $(PCMCIA_DIR)/wlan-ng.opts $(PCMCIA_DIR)/wlan-ng.opts.O ; \
fi ; \
cp -p wlan-ng.opts $(PCMCIA_DIR) ; \
chmod +x $(PCMCIA_DIR)/wlan-ng ; \
if [ -f $(PCMCIA_DIR)/wlan-ng.conf ]; then \
mv -f $(PCMCIA_DIR)/wlan-ng.conf $(PCMCIA_DIR)/wlan-ng.conf.O ; \
fi ; \
cp -p wlan-ng.conf $(PCMCIA_DIR) ; \
if grep -vsq 'source.*\.\/\*\.conf$$' $(PCMCIA_DIR)/config ; then \
if grep -vsq 'source.*wlan-ng' $(PCMCIA_DIR)/config ; then \
mv -f $(PCMCIA_DIR)/config $(PCMCIA_DIR)/config.O ; \
( echo "source ./wlan-ng.conf"; cat $(PCMCIA_DIR)/config.O) > $(PCMCIA_DIR)/config ; \
fi ; \
fi

49
etc/pcmcia/wlan-ng Executable file
View File

@ -0,0 +1,49 @@
#! /bin/sh
#
# wlan-ng
#
#
. ./shared
# set -x
# Get device attributes
get_info $DEVICE
HWADDR=`/sbin/ifconfig $DEVICE | sed -n -e 's/.*addr \(.*\)/\1/p'`
# Load site-specific settings
ADDRESS="$SCHEME,$SOCKET,$INSTANCE,$HWADDR"
. $0.opts
case "$ACTION" in
'start')
/sbin/wlanctl-ng $DEVICE mibset "mibattribute=dot11DesiredSSID=$DESIRED_SSID"
/sbin/wlanctl-ng $DEVICE associate listeninterval=0
# Now initialize the network interface in the normal way
./network $1 $2
;;
'stop'|'check'|'cksum'|'restart'|'suspend'|'resume')
# Just handle it the same as any other net device
echo calling network script
./network $1 $2
reval=$?
# nothing else for now...
exit $retval
;;
*)
usage
;;
esac
exit 0

12
etc/pcmcia/wlan-ng.conf Executable file
View File

@ -0,0 +1,12 @@
device "prism2sta_cs"
class "wlan-ng" module "prism2sta_cs"
card "Intersil Prism2 Ref. Card"
manfid 0x0156, 0x0002
bind "prism2sta_cs"
card "Compaq WL100 11Mb/s WLAN Card"
manfid 0x0138, 0x0002
bind "prism2sta_cs"

17
etc/pcmcia/wlan-ng.opts Executable file
View File

@ -0,0 +1,17 @@
# Wireless LAN adapter configuration
#
# wlan-ng.opts
#
# The address format is "scheme,socket,instance,hwaddr".
#
#
case "$ADDRESS" in
*,*,*,*)
# Scan for which SSID?
SCAN_SSID=""
DESIRED_SSID="Set your own here"
;;
esac