diff options
Diffstat (limited to 'abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn')
8 files changed, 416 insertions, 0 deletions
diff --git a/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/entries b/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/entries new file mode 100644 index 0000000..f9c4a3a --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/entries @@ -0,0 +1,139 @@ +9 + +dir +1870 +svn://svn.shaftnet.org/linux-wlan-ng/trunk/etc +svn://svn.shaftnet.org/linux-wlan-ng + + + +2008-06-24T19:10:11.002401Z +1863 +pizza + + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +7c16ee9a-e2ed-0310-ae25-9f6e1be264fe + +wlan +dir + +udev +dir + +rc.wlan +file + + + + +2009-01-07T08:13:02.000000Z +bed6984515bc8c1e44bd0914116e752d +2003-05-06T02:35:45.000000Z +1390 +solomon +has-props + + + + + + + + + + + + + + + + + + + + +1776 + +pcmcia +dir + +Makefile +file + + + + +2009-01-07T08:13:02.000000Z +efbcbef4f410942b5e22495d20536b49 +2005-01-26T22:01:07.661267Z +1678 +solomon +has-props + + + + + + + + + + + + + + + + + + + + +2640 + +wlan.agent +file + + + + +2009-01-07T08:13:02.000000Z +2048f9a34ef178972ac90cc8a2fbb6ce +2006-01-18T18:58:45.747036Z +1765 +solomon +has-props + + + + + + + + + + + + + + + + + + + + +1643 + diff --git a/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/format b/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/format new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/format @@ -0,0 +1 @@ +9 diff --git a/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/prop-base/Makefile.svn-base b/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/prop-base/Makefile.svn-base new file mode 100644 index 0000000..7b57b30 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/prop-base/Makefile.svn-base @@ -0,0 +1,9 @@ +K 13 +svn:eol-style +V 6 +native +K 12 +svn:keywords +V 23 +Author Date Id Revision +END diff --git a/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/prop-base/rc.wlan.svn-base b/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/prop-base/rc.wlan.svn-base new file mode 100644 index 0000000..5336d10 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/prop-base/rc.wlan.svn-base @@ -0,0 +1,13 @@ +K 13 +svn:eol-style +V 6 +native +K 14 +svn:executable +V 1 +* +K 12 +svn:keywords +V 23 +Author Date Id Revision +END diff --git a/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/prop-base/wlan.agent.svn-base b/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/prop-base/wlan.agent.svn-base new file mode 100644 index 0000000..5336d10 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/prop-base/wlan.agent.svn-base @@ -0,0 +1,13 @@ +K 13 +svn:eol-style +V 6 +native +K 14 +svn:executable +V 1 +* +K 12 +svn:keywords +V 23 +Author Date Id Revision +END diff --git a/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/text-base/Makefile.svn-base b/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/text-base/Makefile.svn-base new file mode 100644 index 0000000..7d46fd2 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/text-base/Makefile.svn-base @@ -0,0 +1,67 @@ +# etc/Makefile +# +# Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved. +# -------------------------------------------------------------------- +# +# linux-wlan +# +# The contents of this file are subject to the Mozilla Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# Alternatively, the contents of this file may be used under the +# terms of the GNU Public License version 2 (the "GPL"), in which +# case the provisions of the GPL are applicable instead of the +# above. If you wish to allow the use of your version of this file +# only under the terms of the GPL and not to allow others to use +# your version of this file under the MPL, indicate your decision +# by deleting the provisions above and replace them with the notice +# and other provisions required by the GPL. If you do not delete +# the provisions above, a recipient may use your version of this +# file under either the MPL or the GPL. +# +# -------------------------------------------------------------------- +# +# Inquiries regarding the linux-wlan Open Source project can be +# made directly to: +# +# AbsoluteValue Systems Inc. +# info@linux-wlan.com +# http://www.linux-wlan.com +# +# -------------------------------------------------------------------- +# +# Portions of the development of this software were funded by +# Intersil Corporation as part of PRISM(R) chipset product development. +# +# -------------------------------------------------------------------- + +-include ../config.mk + +DIRS= pcmcia wlan + +all: + set -e; for d in $(DIRS); do $(MAKE) -C $$d all; done + +clean: + set -e; for d in $(DIRS); do $(MAKE) -C $$d clean; done + +install: + set -e; for d in $(DIRS); do $(MAKE) -C $$d install; done + if [ ! -d $(TARGET_ROOT_ON_HOST)$(RC_DIR)/init.d ]; then \ + mkdir -p $(TARGET_ROOT_ON_HOST)$(RC_DIR)/init.d; \ + fi; \ + cp rc.wlan $(TARGET_ROOT_ON_HOST)$(RC_DIR)/init.d/wlan; \ + chmod 755 $(TARGET_ROOT_ON_HOST)$(RC_DIR)/init.d/wlan ;\ + if [ -d $(TARGET_ROOT_ON_HOST)/etc/hotplug ]; then \ + cp wlan.agent $(TARGET_ROOT_ON_HOST)/etc/hotplug; \ + rm -f $(TARGET_ROOT_ON_HOST)/etc/hotplug/usb/prism2_usb; \ + rm -f $(TARGET_ROOT_ON_HOST)/etc/hotplug/pci/prism2_pci; \ + rm -f $(TARGET_ROOT_ON_HOST)/etc/hotplug/pci/prism2_plx; \ + fi diff --git a/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/text-base/rc.wlan.svn-base b/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/text-base/rc.wlan.svn-base new file mode 100644 index 0000000..70e0c54 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/text-base/rc.wlan.svn-base @@ -0,0 +1,96 @@ +#!/bin/sh + +# rc.wlan +# +# chkconfig: 2345 9 91 +# description: Activates/Configures/Disables the devices + +if [ ! -f /etc/wlan/shared ] ; then + echo "/etc/wlan/shared not present" + exit 0 +fi + +. /etc/wlan/shared + +if [ -f /etc/init.d/functions ] ; then + . /etc/init.d/functions +fi + +usage() +{ + echo "Usage: $0 {start|stop|status|restart|reload|force-reload}" +} + + +if [ $# -lt 1 ] ; then usage ; exit 1 ; fi +action=$1 + +case "$action" in + +start) + # This will implicitly fire off wland via hotplug. + echo -n "Starting WLAN Devices: " + if ! $MODPROBE p80211; then + echo "Failed to load p80211.o." + exit 1 + fi + + # NOTE: We don't explicitly insmod the card driver here. The + # best thing to do is to specify an alias in /etc/modules.conf. + + for DEVICE in $WLAN_DEVICES; do + $MODPROBE $DEVICE + # if we don't have hotplug.. do things the old-fashioned way. + if [ $HAS_HOTPLUG = 'n' ] ; then + wlan_bring_it_up $DEVICE + fi + done + + # And hotplug will take care of the rest, namely device + # initialization and whatnot. + + if [ -f /etc/init.d/functions ] ; then + echo_success + else + echo + fi + + ;; + +stop) + echo -n "Shutting Down WLAN Devices: " + echo -n "Shutting Down WLAN Devices: " + # Do a reset on each device to make sure none of them are still + # trying to generate interrupts. + for DEVICE in $WLAN_DEVICES; do + wlan_disable $DEVICE + ifconfig $DEVICE down + $MODPROBE -r $DEVICE + done + + # remove p80211, which will implictly kill wland. + $MODPROBE -r p80211 + + if [ -f /etc/init.d/functions ] ; then + echo_success + else + echo + fi + ;; + +status) + status wland + ;; + +restart|reload|force-reload) + $0 stop + $0 start + EXITCODE=$? + ;; + + *) + usage + ;; + +esac + diff --git a/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/text-base/wlan.agent.svn-base b/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/text-base/wlan.agent.svn-base new file mode 100644 index 0000000..7cf800a --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils/tmp/trunk/etc/.svn/text-base/wlan.agent.svn-base @@ -0,0 +1,78 @@ +#!/bin/bash +# +# p80211/wlan hotplug policy agent. +# +# wlan hotplug params include: +# +# ACTION=%s [register|remove|shutdown|startup|suspend|resume] +# INTERFACE=%s +# NSDNAME=%s +# + +cd /etc/hotplug +. hotplug.functions + +#DEBUG=yes export DEBUG + +if [ "$INTERFACE" = "" ]; then + mesg Bad WLAN invocation: \$INTERFACE is not set + exit 1 +fi + +if [ "$NSDNAME" = "" ]; then + mesg Bad WLAN invocation: \$NSDNAME is not set + exit 1 +fi + +debug_mesg WLAN $ACTION on $INTERFACE \($NSDNAME\) + +if [ "$NSDNAME" = "prism2_cs" ] ; then + mesg "WLAN Hotplug bypassed for pcmcia" + exit 0 +fi + +# load up the shared scripts +if [ ! -f /etc/wlan/shared ] ; then + mesg "/etc/wlan/shared not present, aborting" + exit 1 +fi + +ECHO=mesg +. /etc/wlan/shared + +case $ACTION in +'register'|'resume') + debug_mesg WLAN $INTERFACE registered. + wlan_bring_it_up $INTERFACE $WLAN_WEXT + if [ $? = 0 ] ; then + mesg WLAN $INTERFACE brought up successfully. + if [ -x /etc/wlan/pre-ifup ] ; then + # pre-ifup is presumed to call ifup if it + # wants to...it may choose to skip it. + mesg "WLAN bringing up layer 3+ with /etc/wlan/pre-ifup" + /etc/wlan/pre-ifup $INTERFACE + else + mesg "WLAN bringing up layer 3+ with /sbin/ifup" + /sbin/ifdown $INTERFACE + /sbin/ifup $INTERFACE + fi + else + mesg WLAN Could not bring up $INTERFACE + fi + # eventually invoke net.agent on $INTERFACE w/ REGISTER +;; +'remove'|'suspend') + debug_mesg WLAN $INTERFACE removed. +;; +'startup') + # kick off wland. + debug_mesg WLAN p80211 starting! +;; +'shutdown') + debug_mesg WLAN p80211 shutting down! +;; +*) + debug_mesg WLAN $ACTION event not supported + exit 1 ;; + +esac |