merge mac80211, iw, hostapd from trunk to backfire
[openwrt-10.03/.git] / package / mac80211 / patches / 900-bash-location.patch
1 --- a/scripts/admin-clean.sh
2 +++ b/scripts/admin-clean.sh
3 @@ -1,4 +1,4 @@
4 -#!/bin/bash
5 +#!/usr/bin/env bash
6  if [ -d net ] ; then
7         make clean
8  fi
9 --- a/scripts/admin-refresh.sh
10 +++ b/scripts/admin-refresh.sh
11 @@ -1,3 +1,3 @@
12 -#!/bin/bash
13 +#!/usr/bin/env bash
14  ./scripts/admin-clean.sh $@
15  ./scripts/admin-update.sh $@
16 --- a/scripts/admin-update.sh
17 +++ b/scripts/admin-update.sh
18 @@ -1,4 +1,4 @@
19 -#!/bin/bash
20 +#!/usr/bin/env bash
21  # 
22  # Copyright 2007, 2008, 2010   Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
23  #
24 --- a/scripts/athenable
25 +++ b/scripts/athenable
26 @@ -1,4 +1,4 @@
27 -#!/bin/bash
28 +#!/usr/bin/env bash
29  #
30  # Copyright 2007       Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
31  #
32 --- a/scripts/athload
33 +++ b/scripts/athload
34 @@ -1,4 +1,4 @@
35 -#!/bin/bash
36 +#!/usr/bin/env bash
37  # Copyright 2007       Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
38  #
39  # Loads ath5k or madwifi
40 --- a/scripts/b43enable
41 +++ b/scripts/b43enable
42 @@ -1,4 +1,4 @@
43 -#!/bin/bash
44 +#!/usr/bin/env bash
45  #
46  # Copyright 2007       Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
47  #
48 --- a/scripts/b43load
49 +++ b/scripts/b43load
50 @@ -1,4 +1,4 @@
51 -#!/bin/bash
52 +#!/usr/bin/env bash
53  # Copyright 2007       Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
54  #
55  # Loads new broadcom drivers (b43 and b43legacy) or the old ones (bcm43xx)
56 --- a/scripts/btload.sh
57 +++ b/scripts/btload.sh
58 @@ -1,4 +1,4 @@
59 -#!/bin/bash
60 +#!/usr/bin/env bash
61  MODULES="bluetooth btusb l2cap sco hidp rfcomm bnep"
62  for i in $MODULES; do
63         echo Loading $i...
64 --- a/scripts/btunload.sh
65 +++ b/scripts/btunload.sh
66 @@ -1,4 +1,4 @@
67 -#!/bin/bash
68 +#!/usr/bin/env bash
69  MODULES="hidp rfcomm bnep l2cap sco btusb bluetooth"
70  echo Stoping bluetooth service..
71  /etc/init.d/bluetooth stop
72 --- a/scripts/check_config.sh
73 +++ b/scripts/check_config.sh
74 @@ -1,4 +1,4 @@
75 -#!/bin/bash
76 +#!/usr/bin/env bash
77  # This script checks the compat-wireless configuration file and if changes were made
78  # regenerates the compat_autoconf header.
79  
80 --- a/scripts/check_depmod
81 +++ b/scripts/check_depmod
82 @@ -1,4 +1,4 @@
83 -#!/bin/bash
84 +#!/usr/bin/env bash
85  # Copyright 2009       Luis R. Rodriguez <mcgrof@gmail.com>
86  # 
87  # Ensures your distribution likes to prefer updates/ over the kernel/
88 --- a/scripts/compress_modules
89 +++ b/scripts/compress_modules
90 @@ -1,4 +1,4 @@
91 -#!/bin/bash
92 +#!/usr/bin/env bash
93  # To be used by distributions using compressed modules
94  
95  COMPRESSION_FOUND="n"
96 --- a/scripts/driver-select
97 +++ b/scripts/driver-select
98 @@ -1,4 +1,4 @@
99 -#!/bin/bash
100 +#!/usr/bin/env bash
101  # Copyright 2009        Luis R. Rodriguez <mcgrof@gmail.com>
102  #
103  # This script allows you to select your compat-wireless driver and
104 --- a/scripts/gen-compat-autoconf.sh
105 +++ b/scripts/gen-compat-autoconf.sh
106 @@ -1,4 +1,4 @@
107 -#!/bin/bash
108 +#!/usr/bin/env bash
109  # 
110  # Copyright 2007       Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
111  #
112 --- a/scripts/gen-stable-release.sh
113 +++ b/scripts/gen-stable-release.sh
114 @@ -1,4 +1,4 @@
115 -#!/bin/bash
116 +#!/usr/bin/env bash
117  # Copyright 2009  Luis R. Rodriguez <mcgrof@gmail.com>
118  #
119  # You can use this to make stable compat-wireless releases
120 --- a/scripts/iwl-enable
121 +++ b/scripts/iwl-enable
122 @@ -1,4 +1,4 @@
123 -#!/bin/bash
124 +#!/usr/bin/env bash
125  #
126  # Copyright 2007       Luis R. Rodriguez <lrodriguez@atheros.com>
127  #
128 --- a/scripts/iwl-load
129 +++ b/scripts/iwl-load
130 @@ -1,4 +1,4 @@
131 -#!/bin/bash
132 +#!/usr/bin/env bash
133  # Copyright 2008       Luis R. Rodriguez <lrodriguez@atheros.com>
134  #
135  # Loads new Intel iwl (iwlagn) or the old ones (iwl4965)
136 --- a/scripts/load.sh
137 +++ b/scripts/load.sh
138 @@ -1,4 +1,4 @@
139 -#!/bin/bash
140 +#!/usr/bin/env bash
141  MODULES="ipw2100 ipw2200 libertas_cs usb8xxx"
142  MODULES="$MODULES p54pci p54usb"
143  MODULES="$MODULES adm8211 zd1211rw"
144 --- a/scripts/modlib.sh
145 +++ b/scripts/modlib.sh
146 @@ -1,4 +1,4 @@
147 -#!/bin/bash
148 +#!/usr/bin/env bash
149  #
150  # Copyright 2007       Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
151  #
152 --- a/scripts/skip-colors
153 +++ b/scripts/skip-colors
154 @@ -1,2 +1,2 @@
155 -#!/bin/bash
156 +#!/usr/bin/env bash
157  perl -pe 's|(\e)\[(\d+)(;*)(\d*)(\w)||g'
158 --- a/scripts/unload.sh
159 +++ b/scripts/unload.sh
160 @@ -1,4 +1,4 @@
161 -#!/bin/bash
162 +#!/usr/bin/env bash
163  
164  # The old stack drivers and the mac80211 rc80211_simple modules 
165  # which is no longer on recent kernels (its internal)
166 --- a/scripts/update-initramfs
167 +++ b/scripts/update-initramfs
168 @@ -1,4 +1,4 @@
169 -#!/bin/bash
170 +#!/usr/bin/env bash
171  # Copyright 2009        Luis R. Rodriguez <mcgrof@gmail.com>
172  #
173  # Since we provide ssb, the Ethernet module b44 some people may
174 --- a/scripts/wlload.sh
175 +++ b/scripts/wlload.sh
176 @@ -1,4 +1,4 @@
177 -#!/bin/bash
178 +#!/usr/bin/env bash
179  MODULES="ipw2100 ipw2200 libertas_cs usb8xxx"
180  MODULES="$MODULES p54pci p54usb"
181  MODULES="$MODULES adm8211 zd1211rw"
182 --- a/scripts/wlunload.sh
183 +++ b/scripts/wlunload.sh
184 @@ -1,4 +1,4 @@
185 -#!/bin/bash
186 +#!/usr/bin/env bash
187  
188  # The old stack drivers and the mac80211 rc80211_simple modules
189  # which is no longer on recent kernels (its internal)