Advertisement
Guest User

/etc/rc.d/rc.wireless.conf

a guest
May 4th, 2014
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.41 KB | None | 0 0
  1. # Wireless LAN adapter configuration
  2. #
  3. # Theory of operation :
  4. #
  5. # The script attempts to match a block of settings to the specific wireless
  6. # card inserted, the *first* block matching the card is used.
  7. # The address format is "hwaddr", with * as a wildcard.
  8. # 'hwaddr' is the unique MAC address identifier of the wireless card.
  9. # The MAC address is usually printed on the card, or can be found via ifconfig.
  10. # Some examples here use only half of the MAC address with a wildcard to
  11. # match a whole family of cards...
  12. #
  13. # All the Wireless specific configuration is done through the Wireless
  14. # Extensions, so we will just call 'iwconfig' with the right parameters
  15. # defined below.
  16. # Of course, you need to have iwconfig installled on your system.
  17. # To download iwconfig, or for more info on Wireless Extensions :
  18. #       http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
  19. #
  20. # Note : you don't need to fill all parameters, leave them blank, in most
  21. # cases the driver will initialise itself with sane defaults values or
  22. # automatically figure out the value... And no drivers do support all
  23. # possible settings...
  24. #
  25. # -- This is a modified '/etc/pcmcia/wireless.opts' script --
  26. # -- I added sections for Prism/GT and Atheros based cards --
  27. # --    (supported by the prism54 and madwifi drivers)     --
  28. # --              16/sep/2004 * Eric Hameleers             --
  29. #
  30.  
  31. VERBOSE=1
  32.  
  33. case "$HWADDR" in
  34.  
  35. ## NOTE : Comment out the following five lines to activate the samples below ...
  36. ## --------- START SECTION TO REMOVE -----------
  37. ## Pick up any Access Point, should work on most 802.11 cards
  38. *)
  39.     INFO="Any ESSID"
  40.     ESSID="any"
  41.     ;;
  42. ## ---------- END SECTION TO REMOVE ------------
  43.  
  44.  
  45. # Here are a few examples with a few Wireless LANs supported...
  46. # The matching is done on the first 3 bytes of the MAC address
  47.  
  48. # SMC2835W EZ Connect g 2.4GHz 54 Mbps Wireless Cardbus Adapter
  49. 00:04:E2:*)
  50.     INFO="SMC2835W EZ Connect g 2.4GHz 54 Mbps Wireless Cardbus Adapter"
  51.     # ESSID (extended network name) : My Network, any
  52.     ESSID="any"
  53.     # NWID/Domain (cell identifier) : 89AB, 100, off
  54.     NWID=""
  55.     # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
  56.     MODE="Managed"
  57.     # Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
  58.     FREQ=""
  59.     CHANNEL="7"
  60.     # Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
  61.     SENS=""
  62.     # Bit rate : auto, 1M, 11M,54M
  63.     RATE="auto"
  64.     # Encryption key : 4567-89AB-CD, s:password
  65.     # Example for 40-bit encryption:
  66.     #KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
  67.     # Example for 104-bit encryption (aka 128-bit WEP):
  68.     #KEY="d5ad2f05abd048ecf10b1c80c7"
  69.     KEY=""
  70.     # RTS threshold : off, 500
  71.     RTS=""
  72.     # Fragmentation threshold : off, 1000
  73.     FRAG=""
  74.     # Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
  75.     IWCONFIG=""
  76.     # iwspy parameters : + 01:23:45:67:89:AB
  77.     IWSPY=""
  78.     # iwpriv parameters : set_port 2, set_histo 50 60
  79.     IWPRIV=""
  80. ;;
  81.  
  82. # Multiband Atheros based 802.11a/b/g universal NIC cards
  83. 00:05:4E:*)
  84.     INFO="Multiband Atheros based 802.11a/b/g universal NIC"
  85.     # ESSID (extended network name) : My Network, any
  86.     ESSID=""
  87.     # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
  88.     MODE="Managed"
  89.     # Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
  90.     FREQ=""
  91.     CHANNEL="7"
  92.     # Bit rate : auto, 1M, 11M,54M
  93.     RATE="auto"
  94.     # Encryption key : 4567-89AB-CD, s:password
  95.     # Example for 40-bit encryption:
  96.     #KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
  97.     # Example for 104-bit encryption (aka 128-bit WEP):
  98.     #KEY="d5ad2f05abd048ecf10b1c80c7"
  99.     KEY=""
  100.     # Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
  101.     IWCONFIG=""
  102.     # iwspy parameters : + 01:23:45:67:89:AB
  103.     IWSPY=""
  104.     # iwpriv parameters : set_port 2, set_histo 50 60
  105.     IWPRIV=""
  106.     ;;
  107.  
  108. # Lucent Wavelan IEEE (+ Orinoco, RoamAbout and ELSA)
  109. # Note : wvlan_cs driver only, and version 1.0.4+ for encryption support
  110. 00:60:1D:*|00:02:2D:*)
  111.     INFO="Wavelan IEEE example (Lucent default settings)"
  112.     ESSID="Wavelan Network"
  113.     MODE="Managed"
  114.     #RATE="auto"
  115.     KEY="s:secu1"
  116.     # To set all four keys, use :
  117.     #KEY="s:secu1 [1] key s:secu2 [2] key s:secu3 [3] key s:secu4 [4] key [1]"
  118.     # For the RG 1000 Residential Gateway: The ESSID is the identifier on
  119.     # the unit, and the default key is the last 5 digits of the same.
  120.     #ESSID="084d70"
  121.     #KEY="s:84d70"
  122.     ;;
  123.  
  124. # Cisco/Aironet 4800/3x0
  125. # Note : MPL driver only (airo/airo_cs), version 1.3 or later
  126. 00:40:96:*|00:02:8A:*)
  127.     INFO="Cisco/Aironet example (Cisco default settings)"
  128.     ESSID="any"
  129.     # To set all four ESSID, use iwconfig v21 and the same trick as above
  130.     MODE="Managed"
  131.     #RATE="11M auto"
  132.     #KEY="d5ad2f05abd048ecf10b1c80c7"
  133.     KEY="off"
  134.     ;;
  135.  
  136. # Samsung MagicLan (+ some other PrismII cards)
  137. # Note : Samsung binary library driver, version 1.20 or later
  138. 00:00:F0:*|00:02:78:*)
  139.     INFO="Samsung MagicLan example (Samsung default settings)"
  140.     ESSID="any"
  141.     MODE="Managed"
  142.     CHANNEL="4"
  143.     RATE="auto"
  144.     #KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
  145.     #IWCONFIG="power on"
  146.     ;;
  147.  
  148. # Raytheon Raylink/WebGear Aviator2.4
  149. # Note : doesn't work yet, please use for debugging only :-(
  150. 00:00:8F:*|00:00:F1:*)
  151.     INFO="Raylink/Aviator2.4 example (Aviator default ad-hoc setting)"
  152.     ESSID="ADHOC_ESSID"
  153.     MODE="Ad-Hoc"
  154.     RATE="auto"
  155.     IWPRIV="set_framing 1"
  156.     ;;
  157.  
  158. # Old Lucent Wavelan
  159. 08:00:0E:*)
  160.     INFO="Wavelan example (Lucent default settings)"
  161.     NWID="0100"
  162.     MODE="Ad-Hoc"
  163.     FREQ="2.425G"
  164.     KEY="off"
  165.     ;;
  166.  
  167. # Netwave (Xircom Netwave/Netwave Airsurfer)
  168. 00:80:C7:*)
  169.     INFO="Netwave example (Netwave default settings)"
  170.     NWID="100"
  171.     KEY="00"
  172.     ;;
  173.  
  174. # Proxim RangeLan2/Symphony (what is the MAC address ???)
  175. XX:XX:XX:*)
  176.     INFO="Proxim RangeLan2/Symphony example"
  177.     NWID="0"
  178.     MODE="Master"
  179.     CHANNEL="15"
  180.     IWPRIV="setsubchan 1"
  181.     ;;
  182.  
  183. # No Wires Needed Swallow 550 and 1100 setting (what is the MAC address ???)
  184. XX:XX:XX:*)
  185.     INFO="NWN Swallow example"
  186.     ESSID="session"
  187.     KEY="0000-0000-00 open"
  188.     ;;
  189.  
  190. # Symbol Spectrum24 setting (what is the MAC address ???)
  191. XX:XX:XX:*)
  192.     INFO="Symbol Spectrum24 example"
  193.     ESSID="Essid string"
  194.     ;;
  195.  
  196. # Generic example (decribe all possible settings)
  197. *)
  198.     INFO="our network"
  199.     # ESSID (extended network name) : My Network, any
  200.     ESSID="Ufanet5"
  201.     # NWID/Domain (cell identifier) : 89AB, 100, off
  202.     #NWID="off"
  203.     # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
  204.     MODE="auto"
  205.     # Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
  206.     #FREQ=""
  207.     #CHANNEL=""
  208.     # Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
  209.     #SENS=""
  210.     # Bit rate : auto, 1M, 11M
  211.     RATE="auto"
  212.     # Encryption key : 4567-89AB-CD, s:password
  213.     KEY="s:да, тут пароль"
  214.     # RTS threshold : off, 500
  215.     #RTS=""
  216.     # Fragmentation threshold : off, 1000
  217.     #FRAG=""
  218.     # Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
  219.     IWCONFIG=""
  220.     # iwspy parameters : + 01:23:45:67:89:AB
  221.     IWSPY=""
  222.     # iwpriv parameters : set_port 2, set_histo 50 60
  223.     IWPRIV=""
  224.     ;;
  225. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement