summaryrefslogtreecommitdiff
path: root/source/n/wireless-tools
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2018-05-28 19:12:29 +0000
committerEric Hameleers <alien@slackware.com>2018-05-31 23:39:35 +0200
commit646a5c1cbfd95873950a87b5f75d52073a967023 (patch)
treeb8b8d2ab3b0d432ea69ad1a64d1c789649d65020 /source/n/wireless-tools
parentd31c50870d0bee042ce660e445c9294a59a3a65b (diff)
downloadcurrent-646a5c1cbfd95873950a87b5f75d52073a967023.tar.gz
Mon May 28 19:12:29 UTC 201820180528191229
a/pkgtools-15.0-noarch-13.txz: Rebuilt. installpkg: default line length for --terselength is the number of columns. removepkg: added --terse mode. upgradepkg: default line length for --terselength is the number of columns. upgradepkg: accept -option in addition to --option. ap/vim-8.1.0026-x86_64-1.txz: Upgraded. d/bison-3.0.5-x86_64-1.txz: Upgraded. e/emacs-26.1-x86_64-1.txz: Upgraded. kde/kopete-4.14.3-x86_64-8.txz: Rebuilt. Recompiled against libidn-1.35. n/conntrack-tools-1.4.5-x86_64-1.txz: Upgraded. n/libnetfilter_conntrack-1.0.7-x86_64-1.txz: Upgraded. n/libnftnl-1.1.0-x86_64-1.txz: Upgraded. n/links-2.16-x86_64-2.txz: Rebuilt. Rebuilt to enable X driver for -g mode. n/lynx-2.8.9dev.19-x86_64-1.txz: Upgraded. n/nftables-0.8.5-x86_64-1.txz: Upgraded. n/p11-kit-0.23.11-x86_64-1.txz: Upgraded. n/ulogd-2.0.7-x86_64-1.txz: Upgraded. n/whois-5.3.1-x86_64-1.txz: Upgraded. xap/network-manager-applet-1.8.12-x86_64-1.txz: Upgraded. xap/vim-gvim-8.1.0026-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/n/wireless-tools')
-rw-r--r--source/n/wireless-tools/doinst.sh26
-rw-r--r--source/n/wireless-tools/scripts/rc.wireless342
-rw-r--r--source/n/wireless-tools/scripts/rc.wireless.conf225
-rw-r--r--source/n/wireless-tools/slack-desc19
-rwxr-xr-xsource/n/wireless-tools/wireless_tools.SlackBuild108
-rw-r--r--source/n/wireless-tools/wireless_tools.nowhine.diff11
-rw-r--r--source/n/wireless-tools/wireless_tools.static.diff11
7 files changed, 0 insertions, 742 deletions
diff --git a/source/n/wireless-tools/doinst.sh b/source/n/wireless-tools/doinst.sh
deleted file mode 100644
index ec61a630..00000000
--- a/source/n/wireless-tools/doinst.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-config() {
- NEW="$1"
- OLD="`dirname $NEW`/`basename $NEW .new`"
- # If there's no config file by that name, mv it over:
- if [ ! -r $OLD ]; then
- mv $NEW $OLD
- elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
- rm $NEW
- fi
- # Otherwise, we leave the .new copy for the admin to consider...
-}
-config etc/rc.d/rc.wireless.conf.new
-
-# This is a kludge, but it's because there's no --reference option
-# on busybox's 'chmod':
-if [ -e etc/rc.d/rc.wireless ]; then
- if [ -x etc/rc.d/rc.wireless ]; then
- chmod 755 etc/rc.d/rc.wireless.new
- else
- chmod 644 etc/rc.d/rc.wireless.new
- fi
-fi
-# Then config() it:
-config etc/rc.d/rc.wireless.new
-
diff --git a/source/n/wireless-tools/scripts/rc.wireless b/source/n/wireless-tools/scripts/rc.wireless
deleted file mode 100644
index d1264a1f..00000000
--- a/source/n/wireless-tools/scripts/rc.wireless
+++ /dev/null
@@ -1,342 +0,0 @@
-#!/bin/sh
-# /etc/rc.d/rc.wireless
-# $Id: rc.wireless,v 1.13 2007/04/13 14:14:43 eha Exp eha $
-#
-# Wireless network card setup.
-#
-# This script sets up PCI, USB, and 32-bit Cardbus wireless devices
-# NOT 16-bit PCMCIA cards! Those are configured in /etc/pcmcia/.
-# Single parameter to this script is the name of a network interface.
-# Normally this script is called from rc.inet1 rather than run
-# directly.
-#
-# This script is a modified '/etc/pcmcia/wireless' script
-# 09/apr/2004 by Eric Hameleers
-# 16/sep/2004 * Eric Hameleers * Fixed iwspy and iwpriv commands
-# 08/apr/2005 * Eric Hameleers * Allow per-interface overrides of the wireless
-# parameters (see /etc/rc.d/rc.inet1.conf)
-# 11/apr/2005 * Eric Hameleers * Tune wpa_supplicant interactions.
-# 23/apr/2005 * Eric Hameleers * First configure card with iwconfig,
-# before starting wpa_supplicant
-# 27/apr/2005 * Eric Hameleers * Multiple 'iwpriv $INTERFACE set' commands.
-# 14/feb/2006 * Eric Hameleers * Better error messages; alternative way of
-# getting HWADDR; parametrized WPA_WAIT value.
-# Don't kill an already running wpa_supplicant.
-# 29/apr/2006 * Pat Volkerding * Reverted HWADDR change, since it relies on
-# a binary (macaddr) that is not built or
-# installed by default since it is not
-# compatible with all interfaces.
-# 15/aug/2006 * Eric Hameleers * Added missing "" around $ESSID, which broke
-# ESSIDs that contain a space character.
-# 10/oct/2006 * Eric Hameleers * Added default empty values for all parameters.
-# This makes a second wireless card leave
-# wpa_supplicant alone if WPA is not configured.
-# 15/oct/2006 * Eric Hameleers * Swapped the calls to "key <key>" and
-# "key restricted" since that might be needed
-# for WEP to work reliably.
-# 09/jan/2007 * Eric Hameleers * Add explicit default values to wireless params;
-# also set the ESSID before IWPRIV commands,
-# needed for some RaLink cards;
-# use /proc/net/wireless instead of calling
-# iwconfig to determine if a card is wireless.
-# 13/apr/2007 * Eric Hameleers * Use of the IWPRIV variable was broken.
-# NOTE: if you need to enter multiple parameters
-# in IWPRIV, you must separate them with the pipe
-# (|) character - this used to be a space char!
-# See the example in rc.inet1.conf.
-# 16/apr/2008 * Pat Volkerding * Make sure that HWADDR is all upper case.
-# 23/apr/2008 * Pat Volkerding * Increase sleep time after bringing up an
-# interface to 3 seconds. Some drivers
-# need this additional time to initialize.
-# 02/jan/2010 * Pat Volkerding * Look for /sys/class/net/$NETDEV/wireless rather
-# than the contents of /proc/net/wireless to find
-# if a network device is wireless. In newer
-# kernels devices will not show up in
-# /proc/net/wireless until active.
-# 16/aug/2012 * Pat Volkerding * Use several tests to determine if an interface
-# is wireless, as the reliability of any given
-# test may depend on the kernel options and the
-# wireless driver used.
-# Convert the MAC address to uppercase in sed.
-# ------------------------------------------------------------------------------
-
-LOGGER=${LOGGER:-cat}
-
-if [ -z $IFNAME ] ; then
- echo "WARNING: The script 'rc.wireless' must be executed by 'rc.inet1'!" | $LOGGER
- echo " You should run the command \"/etc/rc.d/rc.inet1 <your_interface>_start\" yourself." | $LOGGER
- return 1 2> /dev/null || exit 1
-fi
-
-INTERFACE=$1
-
-# Find the path where wireless tools are installed
-for IWPATH in /usr/{bin,sbin} /usr/local/{bin,sbin} /sbin /bin ; do
- if [ -x $IWPATH/iwconfig ] ; then break ; fi
-done
-
-# The same for wpa_supplicant (needed for WPA support)
-for SUPPATH in /usr/{bin,sbin} /usr/local/{bin,sbin} /sbin /bin ; do
- if [ -x $SUPPATH/wpa_supplicant ] ; then break ; fi
-done
-
-# Set all desired settings through the wireless tools
-IWCOMMAND="$IWPATH/iwconfig ${INTERFACE}"
-IWPRIVCMD="$IWPATH/iwpriv ${INTERFACE}"
-IWSPYCMD="$IWPATH/iwspy ${INTERFACE}"
-IFCOMMAND="/sbin/ifconfig ${INTERFACE}"
-
-is_wireless_device ()
-{
- # Return 0 for a wireless interface, or 1 for a non-wireless interface.
- if LC_ALL=C $IWPATH/iwconfig $1 2>&1 | grep -q "IEEE 802.11" ; then
- return 0
- elif [ -d /sys/class/net/${1}/wireless ]; then
- return 0
- elif [ "$(cat /sys/class/net/${1}/uevent | grep DEVTYPE)" = "DEVTYPE=wlan" ]; then
- return 0
- else # all tests failed, assume the device is not wireless (or add a better test :)
- return 1
- fi
-}
-
-###############
-# EXIT POINTS #
-###############
-
-# Is the device wireless? If not, exit this script.
-is_wireless_device ${INTERFACE} || return 0 2> /dev/null || exit 0
-
-# If we stop a wireless interface using wpa_supplicant,
-# we'll kill its wpa_supplicant daemon too and exit this script:
-if [ "$2" = "stop" ]; then
- WPAPID=$(echo $(ps axww | grep wpa_supplicant | grep i${INTERFACE}) | cut -f1 -d' ')
- [ ${WPAPID} ] && kill ${WPAPID}
- return 0
-fi
-
-# -----------------------------------------------------
-# Continue with the script - bringing the interface UP.
-# -----------------------------------------------------
-
-# Bring interface up - for determining the HWADDR
-$IFCOMMAND up
-sleep 3
-
-# Get the MAC address for the interface
-HWADDR=$(/sbin/ifconfig ${INTERFACE} | sed -ne 's/.*\(..:..:..:..:..:..\).*/\U\1/p')
-
-# Empty all wireless parameters- some of them could still be set for a previous interface:
-# when rc.inet1 is sourced from rc.M all scripts are run in the same shell.
-CHANNEL=""
-ESSID=""
-FREQ=""
-FRAG=""
-IWCONFIG=""
-IWPRIV=""
-IWSPY=""
-KEY=""
-MODE=""
-NICKNAME=""
-NWID=""
-RATE=""
-RTS=""
-SENS=""
-WPA=""
-WPADRIVER=""
-WPACONF=""
-WPAWAIT=""
-# Read the configuration information for the card with address $HWADDR
-# from /etc/rc.d/rc.wireless.conf:
-[[ -r /etc/rc.d/rc.wireless.conf ]] && . /etc/rc.d/rc.wireless.conf
-
-# Let any per-interface overrides (the WLAN_xxxx parameters) that are set
-# in /etc/rc.d/rc.inet1.conf have precedence.
-# The reason: you might have multiple wireless cards of the same brand, or
-# connecting to multiple networks.
-# Position 'i' of this interface in the IFNAME array was determined in rc.inet1
-CHANNEL=${WLAN_CHANNEL[$i]:-${CHANNEL}}
-ESSID=${WLAN_ESSID[$i]:-${ESSID}}
-FREQ=${WLAN_FREQ[$i]:-${FREQ}}
-FRAG=${WLAN_FRAG[$i]:-${FRAG}}
-IWCONFIG=${WLAN_IWCONFIG[$i]:-${IWCONFIG}}
-IWPRIV=${WLAN_IWPRIV[$i]:-${IWPRIV}}
-IWSPY=${WLAN_IWSPY[$i]:-${IWSPY}}
-KEY=${WLAN_KEY[$i]:-${KEY}}
-MODE=${WLAN_MODE[$i]:-${MODE}}
-NICKNAME=${WLAN_NICKNAME[$i]:-${NICKNAME}}
-NWID=${WLAN_NWID[$i]:-${NWID}}
-RATE=${WLAN_RATE[$i]:-${RATE}}
-RTS=${WLAN_RTS[$i]:-${RTS}}
-SENS=${WLAN_SENS[$i]:-${SENS}}
-WPA=${WLAN_WPA[$i]:-${WPA}}
-# The "ext" interface will be default if not explicitly set
-WPADRIVER=${WLAN_WPADRIVER[$i]:-${WPADRIVER:="wext"}}
-# The default config file as installed by the wpa_supplicant package:
-WPACONF=${WLAN_WPACONF[$i]:-${WPACONF:="/etc/wpa_supplicant.conf"}}
-WPAWAIT=${WLAN_WPAWAIT[$i]:-${WPAWAIT:="60"}}
-
-
-[ -n "$VERBOSE" -a -n "$INFO" ] && echo "$0: $1 information: '$INFO'"
-
-###################
-# WIRELESS CONFIG #
-###################
-
-# Mode needs to be first : some settings apply only in a specific mode!
-if [ -n "$MODE" ] ; then
- echo "$0: $IWCOMMAND mode $MODE" | $LOGGER
- # if $IWCOMMAND fails, try taking the interface down to run it.
- # Some drivers require this.
- if ! $IWCOMMAND mode $MODE 2> /dev/null ; then
- $IFCOMMAND down
- $IWCOMMAND mode $MODE
- $IFCOMMAND up
- sleep 3
- fi
-fi
-# This is a bit hackish, but should do the job right...
-if [ ! -n "$NICKNAME" ] ; then
- NICKNAME=$(/bin/hostname)
-fi
-if [ -n "$ESSID" -o -n "$MODE" ] ; then
- echo "$0: $IWCOMMAND nick $NICKNAME" | $LOGGER
- $IWCOMMAND nick $NICKNAME
-fi
-# Regular stuff...
-if [ -n "$NWID" ] ; then
- echo "$0: $IWCOMMAND nwid $NWID" | $LOGGER
- $IWCOMMAND nwid $NWID
-fi
-if [ -n "$FREQ" ] ; then
- echo "$0: $IWCOMMAND freq $FREQ" | $LOGGER
- $IWCOMMAND freq $FREQ
-elif [ -n "$CHANNEL" ] ; then
- echo "$0: $IWCOMMAND channel $CHANNEL" | $LOGGER
- $IWCOMMAND channel $CHANNEL
-fi
-
-# WEP keys (non-WPA)
-if [ -n "$KEY" -a ! -n "$WPA" ] ; then
- if [ "$KEY" = "off" ]; then
- echo "$0: $IWCOMMAND key open" | $LOGGER
- $IWCOMMAND key open
- echo "$0: $IWCOMMAND key off" | $LOGGER
- $IWCOMMAND key off
- else
- echo "$0: $IWCOMMAND key ************" | $LOGGER
- $IWCOMMAND key $KEY
- if ! echo "$KEY" | egrep -qw "restricted|open" ; then
- # Set "restricted" as the default security mode:
- echo "$0: $IWCOMMAND key restricted" | $LOGGER
- $IWCOMMAND key restricted
- fi
- fi
-fi
-if [ -n "$SENS" ] ; then
- echo "$0: $IWCOMMAND sens $SENS" | $LOGGER
- $IWCOMMAND sens $SENS
-fi
-if [ -n "$RATE" ] ; then
- echo "$0: $IWCOMMAND rate $RATE" | $LOGGER
- $IWCOMMAND rate $RATE
-fi
-if [ -n "$RTS" ] ; then
- echo "$0: $IWCOMMAND rts $RTS" | $LOGGER
- $IWCOMMAND rts $RTS
-fi
-if [ -n "$FRAG" ] ; then
- echo "$0: $IWCOMMAND frag $FRAG" | $LOGGER
- $IWCOMMAND frag $FRAG
-fi
-# More specific parameters
-if [ -n "$IWCONFIG" ] ; then
- echo "$0: $IWCOMMAND $IWCONFIG" | $LOGGER
- $IWCOMMAND $IWCONFIG
-fi
-if [ -n "$IWSPY" ] ; then
- echo "$0: $IWSPYCMD $IWSPY" | $LOGGER
- $IWSPYCMD $IWSPY
-fi
-# For RaLink cards, the SSID must be set right before configuring WPAPSK/TKIP parameters
-# using iwpriv commands in order to generate the wpapsk password. This should not hurt other cards:
-if [ -n "$ESSID" ] ; then
- echo "$0: $IWCOMMAND essid \"$ESSID\"" | $LOGGER
- $IWCOMMAND essid "$ESSID"
-fi
-# The iwpriv can set one private IOCTL at the time, so if the $IWPRIV
-# variable contains multiple pipe ('|') separated settings, we split them here:
-# WARNING: if your iwpriv commands contain a WEP/WPA key, these can be logged
-# in /var/log/messages!
-if [ -n "$IWPRIV" ] ; then
- echo "${IWPRIV}|" | \
- while read -d '|' iwi; do
- if [ -n "$iwi" ]; then
- echo "$0: '$IWPRIVCMD $iwi'" | $LOGGER
- $IWPRIVCMD $iwi
- fi
- done
-fi
-
-##################
-# WPA_SUPPLICANT #
-##################
-
-# Support for WPA (wireless protected access) is provided by wpa_supplicant
-# for those drivers that support it (and it looks like wpa_supplicant is
-# the future for WPA support in Linux anyway)
-if [ "$WPA" = "wpa_supplicant" ] || [ "$WPA" = "wpaxsupplicant" ] && [ -x ${SUPPATH}/wpa_supplicant ]; then
- # Interface down, so wpa_supplicant can associate with the AP
- $IFCOMMAND down
- #WPACONF=${WPACONF:-/etc/wpa_supplicant.conf}
- WPA_OPTIONS=""
- [ ${WPADRIVER} ] && WPA_OPTIONS="-D${WPADRIVER}" # specify the driver
- [ ${WPA} = "wpaxsupplicant" ] && WPA_OPTIONS="${WPA_OPTIONS} -e" # Use external xsupplicant (disables the internal supplicant)
-
- # We leave a running wpa_supplicant process in peace:
- WPAPID=$(echo $(ps axww | grep wpa_supplicant | grep i${INTERFACE}) | cut -f1 -d' ')
- if [ ${WPAPID} ]; then
- echo "$0: wpa_supplicant found running already" | $LOGGER
- else
- echo "$0: wpa_supplicant -B -c${WPACONF} ${WPA_OPTIONS} -i$INTERFACE" | $LOGGER
- ${SUPPATH}/wpa_supplicant -B -c${WPACONF} ${WPA_OPTIONS} -i$INTERFACE
- fi
-
- # Buy wpa_supplicant some time to authenticate before bringing the
- # interface back up... but we don't wait forever:
- # You can increase this value in rc.inet1.conf (WLAN_WPAWAIT) or rc.wireless.conf (WPAWAIT)
- # if your card takes longer to associate:
- WPAWAIT=${WPAWAIT:-10}
- wi=0
- while [ $wi -lt $WPAWAIT ]; do
- wi=$(($wi+1)); sleep 1
- if (grep -q "^ctrl_interface=" ${WPACONF}); then
- if (LC_ALL=C ${SUPPATH}/wpa_cli -i$INTERFACE status | grep -q "^wpa_state=COMPLETED"); then break; fi
- else
- if (LC_ALL=C ${IWCOMMAND} | grep -Eq "Encryption key:....-"); then break; fi
- fi
- done
- if [ $wi -eq $WPAWAIT ]; then
- echo "WPA authentication did not complete, try running '/etc/rc.d/rc.inet1 ${INTERFACE}_start' in a few seconds." | $LOGGER
- fi
- # Bring interface up to avoid 'not ready' errors when calling iwconfig
- $IFCOMMAND up
- sleep 3
-
-else
-
- # ESSID need to be last: most devices re-perform the scanning/discovery
- # when this is set, and things like encryption keys had better be
- # defined if we want to discover the right set of APs/nodes.
- # NOTE: when automatic association does not work, but you manage to get
- # an IP address by manually setting the ESSID and then calling dhcpcd,
- # then the cause might be the incorrect definition of your ESSID="bla"
- # parameter in rc.wireless.conf.
- # Debug your wireless problems by running 'iwevent' while the card
- # is being configured.
- if [ -n "$ESSID" ] ; then
- echo "$0: $IWCOMMAND essid \"$ESSID\"" | $LOGGER
- $IWCOMMAND essid "$ESSID"
- fi
-
-fi
diff --git a/source/n/wireless-tools/scripts/rc.wireless.conf b/source/n/wireless-tools/scripts/rc.wireless.conf
deleted file mode 100644
index d02d7c2c..00000000
--- a/source/n/wireless-tools/scripts/rc.wireless.conf
+++ /dev/null
@@ -1,225 +0,0 @@
-# Wireless LAN adapter configuration
-#
-# Theory of operation :
-#
-# The script attempts to match a block of settings to the specific wireless
-# card inserted, the *first* block matching the card is used.
-# The address format is "hwaddr", with * as a wildcard.
-# 'hwaddr' is the unique MAC address identifier of the wireless card.
-# The MAC address is usually printed on the card, or can be found via ifconfig.
-# Some examples here use only half of the MAC address with a wildcard to
-# match a whole family of cards...
-#
-# All the Wireless specific configuration is done through the Wireless
-# Extensions, so we will just call 'iwconfig' with the right parameters
-# defined below.
-# Of course, you need to have iwconfig installled on your system.
-# To download iwconfig, or for more info on Wireless Extensions :
-# http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
-#
-# Note : you don't need to fill all parameters, leave them blank, in most
-# cases the driver will initialise itself with sane defaults values or
-# automatically figure out the value... And no drivers do support all
-# possible settings...
-#
-# -- This is a modified '/etc/pcmcia/wireless.opts' script --
-# -- I added sections for Prism/GT and Atheros based cards --
-# -- (supported by the prism54 and madwifi drivers) --
-# -- 16/sep/2004 * Eric Hameleers --
-#
-
-VERBOSE=1
-
-case "$HWADDR" in
-
-## NOTE : Comment out the following five lines to activate the samples below ...
-## --------- START SECTION TO REMOVE -----------
-## Pick up any Access Point, should work on most 802.11 cards
-*)
- INFO="Any ESSID"
- ESSID="any"
- ;;
-## ---------- END SECTION TO REMOVE ------------
-
-
-# Here are a few examples with a few Wireless LANs supported...
-# The matching is done on the first 3 bytes of the MAC address
-
-# SMC2835W EZ Connect g 2.4GHz 54 Mbps Wireless Cardbus Adapter
-00:04:E2:*)
- INFO="SMC2835W EZ Connect g 2.4GHz 54 Mbps Wireless Cardbus Adapter"
- # ESSID (extended network name) : My Network, any
- ESSID="any"
- # NWID/Domain (cell identifier) : 89AB, 100, off
- NWID=""
- # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
- MODE="Managed"
- # Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
- FREQ=""
- CHANNEL="7"
- # Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
- SENS=""
- # Bit rate : auto, 1M, 11M,54M
- RATE="auto"
- # Encryption key : 4567-89AB-CD, s:password
- # Example for 40-bit encryption:
- #KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
- # Example for 104-bit encryption (aka 128-bit WEP):
- #KEY="d5ad2f05abd048ecf10b1c80c7"
- KEY=""
- # RTS threshold : off, 500
- RTS=""
- # Fragmentation threshold : off, 1000
- FRAG=""
- # Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
- IWCONFIG=""
- # iwspy parameters : + 01:23:45:67:89:AB
- IWSPY=""
- # iwpriv parameters : set_port 2, set_histo 50 60
- IWPRIV=""
-;;
-
-# Multiband Atheros based 802.11a/b/g universal NIC cards
-00:05:4E:*)
- INFO="Multiband Atheros based 802.11a/b/g universal NIC"
- # ESSID (extended network name) : My Network, any
- ESSID=""
- # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
- MODE="Managed"
- # Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
- FREQ=""
- CHANNEL="7"
- # Bit rate : auto, 1M, 11M,54M
- RATE="auto"
- # Encryption key : 4567-89AB-CD, s:password
- # Example for 40-bit encryption:
- #KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
- # Example for 104-bit encryption (aka 128-bit WEP):
- #KEY="d5ad2f05abd048ecf10b1c80c7"
- KEY=""
- # Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
- IWCONFIG=""
- # iwspy parameters : + 01:23:45:67:89:AB
- IWSPY=""
- # iwpriv parameters : set_port 2, set_histo 50 60
- IWPRIV=""
- ;;
-
-# Lucent Wavelan IEEE (+ Orinoco, RoamAbout and ELSA)
-# Note : wvlan_cs driver only, and version 1.0.4+ for encryption support
-00:60:1D:*|00:02:2D:*)
- INFO="Wavelan IEEE example (Lucent default settings)"
- ESSID="Wavelan Network"
- MODE="Managed"
- #RATE="auto"
- KEY="s:secu1"
- # To set all four keys, use :
- #KEY="s:secu1 [1] key s:secu2 [2] key s:secu3 [3] key s:secu4 [4] key [1]"
- # For the RG 1000 Residential Gateway: The ESSID is the identifier on
- # the unit, and the default key is the last 5 digits of the same.
- #ESSID="084d70"
- #KEY="s:84d70"
- ;;
-
-# Cisco/Aironet 4800/3x0
-# Note : MPL driver only (airo/airo_cs), version 1.3 or later
-00:40:96:*|00:02:8A:*)
- INFO="Cisco/Aironet example (Cisco default settings)"
- ESSID="any"
- # To set all four ESSID, use iwconfig v21 and the same trick as above
- MODE="Managed"
- #RATE="11M auto"
- #KEY="d5ad2f05abd048ecf10b1c80c7"
- KEY="off"
- ;;
-
-# Samsung MagicLan (+ some other PrismII cards)
-# Note : Samsung binary library driver, version 1.20 or later
-00:00:F0:*|00:02:78:*)
- INFO="Samsung MagicLan example (Samsung default settings)"
- ESSID="any"
- MODE="Managed"
- CHANNEL="4"
- RATE="auto"
- #KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
- #IWCONFIG="power on"
- ;;
-
-# Raytheon Raylink/WebGear Aviator2.4
-# Note : doesn't work yet, please use for debugging only :-(
-00:00:8F:*|00:00:F1:*)
- INFO="Raylink/Aviator2.4 example (Aviator default ad-hoc setting)"
- ESSID="ADHOC_ESSID"
- MODE="Ad-Hoc"
- RATE="auto"
- IWPRIV="set_framing 1"
- ;;
-
-# Old Lucent Wavelan
-08:00:0E:*)
- INFO="Wavelan example (Lucent default settings)"
- NWID="0100"
- MODE="Ad-Hoc"
- FREQ="2.425G"
- KEY="off"
- ;;
-
-# Netwave (Xircom Netwave/Netwave Airsurfer)
-00:80:C7:*)
- INFO="Netwave example (Netwave default settings)"
- NWID="100"
- KEY="00"
- ;;
-
-# Proxim RangeLan2/Symphony (what is the MAC address ???)
-XX:XX:XX:*)
- INFO="Proxim RangeLan2/Symphony example"
- NWID="0"
- MODE="Master"
- CHANNEL="15"
- IWPRIV="setsubchan 1"
- ;;
-
-# No Wires Needed Swallow 550 and 1100 setting (what is the MAC address ???)
-XX:XX:XX:*)
- INFO="NWN Swallow example"
- ESSID="session"
- KEY="0000-0000-00 open"
- ;;
-
-# Symbol Spectrum24 setting (what is the MAC address ???)
-XX:XX:XX:*)
- INFO="Symbol Spectrum24 example"
- ESSID="Essid string"
- ;;
-
-# Generic example (decribe all possible settings)
-*)
- INFO="Fill with your own settings..."
- # ESSID (extended network name) : My Network, any
- ESSID=""
- # NWID/Domain (cell identifier) : 89AB, 100, off
- NWID=""
- # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
- MODE=""
- # Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
- FREQ=""
- CHANNEL=""
- # Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
- SENS=""
- # Bit rate : auto, 1M, 11M
- RATE=""
- # Encryption key : 4567-89AB-CD, s:password
- KEY=""
- # RTS threshold : off, 500
- RTS=""
- # Fragmentation threshold : off, 1000
- FRAG=""
- # Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
- IWCONFIG=""
- # iwspy parameters : + 01:23:45:67:89:AB
- IWSPY=""
- # iwpriv parameters : set_port 2, set_histo 50 60
- IWPRIV=""
- ;;
-esac
diff --git a/source/n/wireless-tools/slack-desc b/source/n/wireless-tools/slack-desc
deleted file mode 100644
index 7b2ca529..00000000
--- a/source/n/wireless-tools/slack-desc
+++ /dev/null
@@ -1,19 +0,0 @@
-# HOW TO EDIT THIS FILE:
-# The "handy ruler" below makes it easier to edit a package description. Line
-# up the first '|' above the ':' following the base package name, and the '|'
-# on the right side marks the last column you can put a character in. You must
-# make exactly 11 lines for the formatting to be correct. It's also
-# customary to leave one space after the ':'.
-
- |-----handy-ruler------------------------------------------------------|
-wireless-tools: wireless-tools (utilities for wireless networking)
-wireless-tools:
-wireless-tools: This package contains tools and a library used for configuring
-wireless-tools: wireless networking interfaces:
-wireless-tools: iwconfig (the main wireless tool), iwlist (display more detailed
-wireless-tools: information than iwconfig), iwspy (get stats per MAC address and
-wireless-tools: more), iwpriv (set driver private ioctls), iwgetid (show the
-wireless-tools: ESSID or NWID of a device), iwevent (display wireless events),
-wireless-tools: ifrename (rename a network interface).
-wireless-tools:
-wireless-tools: The wireless-tools were written by Jean Tourrilhes.
diff --git a/source/n/wireless-tools/wireless_tools.SlackBuild b/source/n/wireless-tools/wireless_tools.SlackBuild
deleted file mode 100755
index 21607d3d..00000000
--- a/source/n/wireless-tools/wireless_tools.SlackBuild
+++ /dev/null
@@ -1,108 +0,0 @@
-#!/bin/sh
-
-# Copyright 2008, 2009, 2010, 2012 Patrick J. Volkerding, Sebeka, Minnesota, USA
-# All rights reserved.
-#
-# Redistribution and use of this script, with or without modification, is
-# permitted provided that the following conditions are met:
-#
-# 1. Redistributions of this script must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-
-VERSION=29
-BUILD=${BUILD:-9}
-
-# Automatically determine the architecture we're building on:
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) export ARCH=i486 ;;
- arm*) export ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
- *) export ARCH=$( uname -m ) ;;
- esac
-fi
-
-if [ "$ARCH" = "x86_64" ]; then
- LIBDIRSUFFIX="64"
-else
- LIBDIRSUFFIX=""
-fi
-
-CWD=$(pwd)
-TMP=${TMP:-/tmp}
-PKG=$TMP/package-wireless-tools
-rm -rf $PKG
-mkdir -p $TMP $PKG
-
-cd $TMP
-rm -rf wireless_tools.$VERSION
-tar xvf $CWD/wireless_tools.$VERSION.tar.gz || exit 1
-cd wireless_tools.$VERSION
-zcat $CWD/wireless_tools.nowhine.diff.gz | patch -p1 --verbose --suffix=.orig --backup || exit 1
-zcat $CWD/wireless_tools.static.diff.gz | patch -p1 --verbose --suffix=.orig --backup || exit 1
-chown -R root:root .
-find . \
- \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
-
-make || exit 1
-
-mkdir -p $PKG/sbin
-cp -a ifrename iwconfig iwevent iwgetid iwlist iwpriv iwspy $PKG/sbin
-chmod 755 $PKG/sbin/*
-# The library seems to be used by kdenetwork, but since the .soname in the shared library
-# doesn't seem to be forward-thinking we'll leave that out still:
-mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}
-cp -a libiw.a $PKG/usr/lib${LIBDIRSUFFIX}
-
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-
-mkdir -p $PKG/usr/include
-cp -a iwlib.h wireless.h $PKG/usr/include
-chmod 644 $PKG/usr/include/*.h
-
-mkdir -p $PKG/usr/man/man5
-cat iftab.5 | gzip -9c > $PKG/usr/man/man5/iftab.5.gz
-mkdir -p $PKG/usr/man/man7
-cat wireless.7 | gzip -9c > $PKG/usr/man/man7/wireless.7.gz
-mkdir -p $PKG/usr/man/man8
-for file in *.8 ; do
- cat $file | gzip -9c > $PKG/usr/man/man8/$file.gz
-done
-
-mkdir -p $PKG/usr/doc/wireless-tools-$VERSION
-cp -a \
- COPYING INSTALL *.txt README* \
- $PKG/usr/doc/wireless-tools-$VERSION
-chmod 644 $PKG/usr/doc/wireless-tools-$VERSION/*
-
-# Add init scripts from Eric Hameleers:
-mkdir -p $PKG/etc/rc.d
-cat $CWD/scripts/rc.wireless > $PKG/etc/rc.d/rc.wireless.new
-chmod 755 $PKG/etc/rc.d/rc.wireless.new
-# This might contain a secret key, so we'll use chmod 600:
-cat $CWD/scripts/rc.wireless.conf > $PKG/etc/rc.d/rc.wireless.conf.new
-chmod 600 $PKG/etc/rc.d/rc.wireless.conf.new
-
-mkdir $PKG/install
-cat $CWD/slack-desc > $PKG/install/slack-desc
-zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
-
-cd $PKG
-/sbin/makepkg -l y -c n $TMP/wireless-tools-$VERSION-$ARCH-$BUILD.txz
-
diff --git a/source/n/wireless-tools/wireless_tools.nowhine.diff b/source/n/wireless-tools/wireless_tools.nowhine.diff
deleted file mode 100644
index 71d4d16f..00000000
--- a/source/n/wireless-tools/wireless_tools.nowhine.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./iwlib.c.orig 2004-10-27 13:55:17.000000000 -0700
-+++ ./iwlib.c 2005-07-13 22:20:33.000000000 -0700
-@@ -102,7 +102,7 @@
- "Monitor" };
-
- /* Disable runtime version warning in iw_get_range_info() */
--int iw_ignore_version = 0;
-+int iw_ignore_version = 1;
-
- /************************ SOCKET SUBROUTINES *************************/
-
diff --git a/source/n/wireless-tools/wireless_tools.static.diff b/source/n/wireless-tools/wireless_tools.static.diff
deleted file mode 100644
index 71f4ec3f..00000000
--- a/source/n/wireless-tools/wireless_tools.static.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./Makefile.orig 2004-10-11 15:16:15.000000000 -0700
-+++ ./Makefile 2005-07-25 00:18:46.000000000 -0700
-@@ -17,7 +17,7 @@
- ## Uncomment this to build tools using static version of the library
- ## Mostly useful for embedded platforms without ldd, or to create
- ## a local version (non-root).
--# BUILD_STATIC = y
-+BUILD_STATIC = y
-
- ## Uncomment this to build without using libm (less efficient)
- ## This is mostly useful for embedded platforms without maths.