1 |
commit: eab4e8b40431c0162a6dadd7cd3c020072b83280 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 21 04:29:40 2019 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 21 04:29:40 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=eab4e8b4 |
7 |
|
8 |
Add shellcheck tooling |
9 |
|
10 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
11 |
|
12 |
init.d/net.lo.in | 1 + |
13 |
mk/scripts.mk | 5 +++++ |
14 |
mk/subdir.mk | 2 ++ |
15 |
net/adsl.sh | 1 + |
16 |
net/apipa.sh | 1 + |
17 |
net/arping.sh | 1 + |
18 |
net/bonding.sh | 1 + |
19 |
net/br2684ctl.sh | 1 + |
20 |
net/bridge.sh | 1 + |
21 |
net/ccwgroup.sh | 1 + |
22 |
net/clip.sh | 1 + |
23 |
net/dhclient.sh | 1 + |
24 |
net/dhcpcd.sh | 1 + |
25 |
net/dummy.sh | 1 + |
26 |
net/ethtool.sh | 1 + |
27 |
net/firewalld.sh | 1 + |
28 |
net/hsr.sh | 1 + |
29 |
net/ifconfig.sh.BSD.in | 1 + |
30 |
net/ifconfig.sh.Linux.in | 1 + |
31 |
net/ifplugd.sh | 1 + |
32 |
net/ifwatchd.sh.BSD.in | 1 + |
33 |
net/ip6rd.sh | 1 + |
34 |
net/ip6to4.sh | 1 + |
35 |
net/ipppd.sh | 1 + |
36 |
net/iproute2.sh | 1 + |
37 |
net/iw.sh | 1 + |
38 |
net/iwconfig.sh.BSD.in | 1 + |
39 |
net/iwconfig.sh.Linux.in | 1 + |
40 |
net/l2tp.sh | 1 + |
41 |
net/macchanger.sh | 1 + |
42 |
net/macnet.sh | 1 + |
43 |
net/macvlan.sh | 1 + |
44 |
net/netplugd.sh | 1 + |
45 |
net/pppd.sh | 1 + |
46 |
net/pump.sh | 1 + |
47 |
net/ssidnet.sh | 1 + |
48 |
net/system.sh | 1 + |
49 |
net/tuntap.sh | 1 + |
50 |
net/udhcpc.sh.Linux.in | 1 + |
51 |
net/veth.sh | 1 + |
52 |
net/vlan.sh | 1 + |
53 |
net/wireguard.sh | 1 + |
54 |
net/wpa_supplicant.sh | 1 + |
55 |
sh/functions.sh | 1 + |
56 |
sh/ifwatchd-carrier.sh.in | 1 + |
57 |
sh/ifwatchd-nocarrier.sh.in | 1 + |
58 |
sh/systemd-wrapper.sh.in | 1 + |
59 |
sh/udhcpc-hook.sh.in | 1 + |
60 |
48 files changed, 53 insertions(+) |
61 |
|
62 |
diff --git a/init.d/net.lo.in b/init.d/net.lo.in |
63 |
index 472ed0c..3afe046 100644 |
64 |
--- a/init.d/net.lo.in |
65 |
+++ b/init.d/net.lo.in |
66 |
@@ -1,4 +1,5 @@ |
67 |
#!@SBINDIR@/openrc-run |
68 |
+# shellcheck shell=sh disable=SC1008 |
69 |
# Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name> |
70 |
# Copyright (c) 2010-2016 Gentoo Foundation |
71 |
# Released under the 2-clause BSD license. |
72 |
|
73 |
diff --git a/mk/scripts.mk b/mk/scripts.mk |
74 |
index 736132a..7e512f0 100644 |
75 |
--- a/mk/scripts.mk |
76 |
+++ b/mk/scripts.mk |
77 |
@@ -14,6 +14,8 @@ _LCL_SED:= $(shell ${_LCL_SED_SH}) |
78 |
|
79 |
SED_REPLACE= -e 's:@SHELL@:${SH}:g' -e 's:@LIB@:${LIBNAME}:g' -e 's:@SYSCONFDIR@:${SYSCONFDIR}:g' -e 's:@CONFDIR@:${CONFDIR}:g' -e 's:@LIBEXECDIR@:${LIBEXECDIR}:g' -e 's:@PREFIX@:${PREFIX}:g' -e 's:@BINDIR@:${BINDIR}:g' -e 's:@SBINDIR@:${SBINDIR}:g' -e 's:@INITDIR@:${INITDIR}:g' ${_PKG_SED} ${_LCL_SED} |
80 |
|
81 |
+SHELLCHECK_CMD = shellcheck -s sh --exclude SC1008 -f gcc |
82 |
+ |
83 |
# Tweak our shell scripts |
84 |
%.sh: %.sh.in |
85 |
${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@ |
86 |
@@ -55,4 +57,7 @@ CLEANFILES+= ${OBJS} |
87 |
clean: |
88 |
@if test -n "${CLEANFILES}"; then echo "rm -f ${CLEANFILES}"; rm -f ${CLEANFILES}; fi |
89 |
|
90 |
+shellcheck: ${SRCS} |
91 |
+ @$(SHELLCHECK_CMD) $< |
92 |
+ |
93 |
include ${MK}/gitignore.mk |
94 |
|
95 |
diff --git a/mk/subdir.mk b/mk/subdir.mk |
96 |
index 7f198f8..4224b5f 100644 |
97 |
--- a/mk/subdir.mk |
98 |
+++ b/mk/subdir.mk |
99 |
@@ -29,3 +29,5 @@ depend: |
100 |
${_SUBDIR} |
101 |
ignore: |
102 |
${_SUBDIR} |
103 |
+shellcheck: |
104 |
+ ${_SUBDIR} |
105 |
|
106 |
diff --git a/net/adsl.sh b/net/adsl.sh |
107 |
index 4bfe51f..7724710 100644 |
108 |
--- a/net/adsl.sh |
109 |
+++ b/net/adsl.sh |
110 |
@@ -1,6 +1,7 @@ |
111 |
# Copyright (c) 2004-2007 Gentoo Foundation |
112 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
113 |
# Released under the 2-clause BSD license. |
114 |
+# shellcheck shell=sh disable=SC1008 |
115 |
|
116 |
adsl_depend() |
117 |
{ |
118 |
|
119 |
diff --git a/net/apipa.sh b/net/apipa.sh |
120 |
index 6f3f910..849728b 100644 |
121 |
--- a/net/apipa.sh |
122 |
+++ b/net/apipa.sh |
123 |
@@ -1,5 +1,6 @@ |
124 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
125 |
# Released under the 2-clause BSD license. |
126 |
+# shellcheck shell=sh disable=SC1008 |
127 |
|
128 |
apipa_depend() |
129 |
{ |
130 |
|
131 |
diff --git a/net/arping.sh b/net/arping.sh |
132 |
index b03b8a9..7e178b7 100644 |
133 |
--- a/net/arping.sh |
134 |
+++ b/net/arping.sh |
135 |
@@ -1,5 +1,6 @@ |
136 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
137 |
# Released under the 2-clause BSD license. |
138 |
+# shellcheck shell=sh disable=SC1008 |
139 |
|
140 |
arping_depend() |
141 |
{ |
142 |
|
143 |
diff --git a/net/bonding.sh b/net/bonding.sh |
144 |
index 6e5d810..880f69b 100644 |
145 |
--- a/net/bonding.sh |
146 |
+++ b/net/bonding.sh |
147 |
@@ -1,6 +1,7 @@ |
148 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
149 |
# 2017 Marc Schiffbauer <mschiff@g.o> |
150 |
# Released under the 2-clause BSD license. |
151 |
+# shellcheck shell=sh disable=SC1008 |
152 |
|
153 |
bonding_depend() |
154 |
{ |
155 |
|
156 |
diff --git a/net/br2684ctl.sh b/net/br2684ctl.sh |
157 |
index 8e48016..c3c9d41 100644 |
158 |
--- a/net/br2684ctl.sh |
159 |
+++ b/net/br2684ctl.sh |
160 |
@@ -1,5 +1,6 @@ |
161 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
162 |
# Released under the 2-clause BSD license. |
163 |
+# shellcheck shell=sh disable=SC1008 |
164 |
|
165 |
br2684ctl_depend() |
166 |
{ |
167 |
|
168 |
diff --git a/net/bridge.sh b/net/bridge.sh |
169 |
index 3dfd8b1..4166215 100644 |
170 |
--- a/net/bridge.sh |
171 |
+++ b/net/bridge.sh |
172 |
@@ -1,5 +1,6 @@ |
173 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
174 |
# Released under the 2-clause BSD license. |
175 |
+# shellcheck shell=sh disable=SC1008 |
176 |
|
177 |
bridge_depend() |
178 |
{ |
179 |
|
180 |
diff --git a/net/ccwgroup.sh b/net/ccwgroup.sh |
181 |
index aaf7de6..9d9bd43 100644 |
182 |
--- a/net/ccwgroup.sh |
183 |
+++ b/net/ccwgroup.sh |
184 |
@@ -1,5 +1,6 @@ |
185 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
186 |
# Released under the 2-clause BSD license. |
187 |
+# shellcheck shell=sh disable=SC1008 |
188 |
|
189 |
_config_vars="$_config_vars ccwgroup" |
190 |
|
191 |
|
192 |
diff --git a/net/clip.sh b/net/clip.sh |
193 |
index 3416075..96bfe6e 100644 |
194 |
--- a/net/clip.sh |
195 |
+++ b/net/clip.sh |
196 |
@@ -1,5 +1,6 @@ |
197 |
# Copyright (c) 2005-2007 Gentoo Foundation |
198 |
# Distributed under the terms of the GNU General Public License v2 |
199 |
+# shellcheck shell=sh disable=SC1008 |
200 |
|
201 |
clip_depend() |
202 |
{ |
203 |
|
204 |
diff --git a/net/dhclient.sh b/net/dhclient.sh |
205 |
index 1c4238e..fd27308 100644 |
206 |
--- a/net/dhclient.sh |
207 |
+++ b/net/dhclient.sh |
208 |
@@ -1,5 +1,6 @@ |
209 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
210 |
# Released under the 2-clause BSD license. |
211 |
+# shellcheck shell=sh disable=SC1008 |
212 |
|
213 |
dhclient_depend() |
214 |
{ |
215 |
|
216 |
diff --git a/net/dhcpcd.sh b/net/dhcpcd.sh |
217 |
index 479170f..1812b45 100644 |
218 |
--- a/net/dhcpcd.sh |
219 |
+++ b/net/dhcpcd.sh |
220 |
@@ -1,5 +1,6 @@ |
221 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
222 |
# Released under the 2-clause BSD license. |
223 |
+# shellcheck shell=sh disable=SC1008 |
224 |
|
225 |
dhcpcd_depend() |
226 |
{ |
227 |
|
228 |
diff --git a/net/dummy.sh b/net/dummy.sh |
229 |
index 3050216..421d951 100644 |
230 |
--- a/net/dummy.sh |
231 |
+++ b/net/dummy.sh |
232 |
@@ -1,5 +1,6 @@ |
233 |
# Copyright (c) 2015 Gentoo Foundation |
234 |
# All rights reserved. Released under the 2-clause BSD license. |
235 |
+# shellcheck shell=sh disable=SC1008 |
236 |
|
237 |
dummy_depend() |
238 |
{ |
239 |
|
240 |
diff --git a/net/ethtool.sh b/net/ethtool.sh |
241 |
index 6023d74..57c98f7 100644 |
242 |
--- a/net/ethtool.sh |
243 |
+++ b/net/ethtool.sh |
244 |
@@ -1,5 +1,6 @@ |
245 |
# Copyright (c) 2011 by Gentoo Foundation |
246 |
# Released under the 2-clause BSD license. |
247 |
+# shellcheck shell=sh disable=SC1008 |
248 |
|
249 |
ethtool_depend() |
250 |
{ |
251 |
|
252 |
diff --git a/net/firewalld.sh b/net/firewalld.sh |
253 |
index b20f571..32c4695 100644 |
254 |
--- a/net/firewalld.sh |
255 |
+++ b/net/firewalld.sh |
256 |
@@ -1,5 +1,6 @@ |
257 |
# Copyright (c) 2012 Doug Goldstein <cardoe@××××××.com> |
258 |
# Released under the 2-clause BSD license. |
259 |
+# shellcheck shell=sh disable=SC1008 |
260 |
|
261 |
firewalld_depend() |
262 |
{ |
263 |
|
264 |
diff --git a/net/hsr.sh b/net/hsr.sh |
265 |
index 94ecc01..f5a427f 100644 |
266 |
--- a/net/hsr.sh |
267 |
+++ b/net/hsr.sh |
268 |
@@ -1,5 +1,6 @@ |
269 |
# Copyright (c) 2015 Gentoo Foundation |
270 |
# All rights reserved. Released under the 2-clause BSD license. |
271 |
+# shellcheck shell=sh disable=SC1008 |
272 |
|
273 |
hsr_depend() |
274 |
{ |
275 |
|
276 |
diff --git a/net/ifconfig.sh.BSD.in b/net/ifconfig.sh.BSD.in |
277 |
index c7e98a2..ff0d17e 100644 |
278 |
--- a/net/ifconfig.sh.BSD.in |
279 |
+++ b/net/ifconfig.sh.BSD.in |
280 |
@@ -1,5 +1,6 @@ |
281 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
282 |
# Released under the 2-clause BSD license. |
283 |
+# shellcheck shell=sh disable=SC1008 |
284 |
|
285 |
ifconfig_depend() |
286 |
{ |
287 |
|
288 |
diff --git a/net/ifconfig.sh.Linux.in b/net/ifconfig.sh.Linux.in |
289 |
index 3d91afa..09708a9 100644 |
290 |
--- a/net/ifconfig.sh.Linux.in |
291 |
+++ b/net/ifconfig.sh.Linux.in |
292 |
@@ -1,5 +1,6 @@ |
293 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
294 |
# Released under the 2-clause BSD license. |
295 |
+# shellcheck shell=sh disable=SC1008 |
296 |
|
297 |
ifconfig_depend() |
298 |
{ |
299 |
|
300 |
diff --git a/net/ifplugd.sh b/net/ifplugd.sh |
301 |
index dcc0657..01e84e4 100644 |
302 |
--- a/net/ifplugd.sh |
303 |
+++ b/net/ifplugd.sh |
304 |
@@ -1,5 +1,6 @@ |
305 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
306 |
# Released under the 2-clause BSD license. |
307 |
+# shellcheck shell=sh disable=SC1008 |
308 |
|
309 |
_config_vars="$_config_vars plug_timeout" |
310 |
|
311 |
|
312 |
diff --git a/net/ifwatchd.sh.BSD.in b/net/ifwatchd.sh.BSD.in |
313 |
index 289b120..c706baa 100644 |
314 |
--- a/net/ifwatchd.sh.BSD.in |
315 |
+++ b/net/ifwatchd.sh.BSD.in |
316 |
@@ -1,5 +1,6 @@ |
317 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
318 |
# Released under the 2-clause BSD license. |
319 |
+# shellcheck shell=sh disable=SC1008 |
320 |
|
321 |
_config_vars="$_config_vars plug_timeout" |
322 |
|
323 |
|
324 |
diff --git a/net/ip6rd.sh b/net/ip6rd.sh |
325 |
index a35e2b7..573d74b 100644 |
326 |
--- a/net/ip6rd.sh |
327 |
+++ b/net/ip6rd.sh |
328 |
@@ -1,5 +1,6 @@ |
329 |
# Copyright (c) 2011 by Gentoo Foundation |
330 |
# Released under the 2-clause BSD license. |
331 |
+# shellcheck shell=sh disable=SC1008 |
332 |
|
333 |
_config_vars="$_config_vars link prefix suffix ipv4mask relay" |
334 |
|
335 |
|
336 |
diff --git a/net/ip6to4.sh b/net/ip6to4.sh |
337 |
index 51b3858..21acd71 100644 |
338 |
--- a/net/ip6to4.sh |
339 |
+++ b/net/ip6to4.sh |
340 |
@@ -1,5 +1,6 @@ |
341 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
342 |
# Released under the 2-clause BSD license. |
343 |
+# shellcheck shell=sh disable=SC1008 |
344 |
|
345 |
_config_vars="$_config_vars link suffix relay" |
346 |
|
347 |
|
348 |
diff --git a/net/ipppd.sh b/net/ipppd.sh |
349 |
index edf0aa0..57c20a4 100644 |
350 |
--- a/net/ipppd.sh |
351 |
+++ b/net/ipppd.sh |
352 |
@@ -1,5 +1,6 @@ |
353 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
354 |
# Released under the 2-clause BSD license. |
355 |
+# shellcheck shell=sh disable=SC1008 |
356 |
|
357 |
ipppd_depend() |
358 |
{ |
359 |
|
360 |
diff --git a/net/iproute2.sh b/net/iproute2.sh |
361 |
index 2d83534..5f65f1c 100644 |
362 |
--- a/net/iproute2.sh |
363 |
+++ b/net/iproute2.sh |
364 |
@@ -1,5 +1,6 @@ |
365 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
366 |
# Released under the 2-clause BSD license. |
367 |
+# shellcheck shell=sh disable=SC1008 |
368 |
|
369 |
iproute2_depend() |
370 |
{ |
371 |
|
372 |
diff --git a/net/iw.sh b/net/iw.sh |
373 |
index de5797b..5462244 100644 |
374 |
--- a/net/iw.sh |
375 |
+++ b/net/iw.sh |
376 |
@@ -1,6 +1,7 @@ |
377 |
# Copyright (c) 2016 Brian Evans <grknight@g.o> |
378 |
# Based on iwconfig.sh Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
379 |
# Released under the 2-clause BSD license. |
380 |
+# shellcheck shell=sh disable=SC1008 |
381 |
|
382 |
_config_vars="$_config_vars ssid mode associate_timeout sleep_scan" |
383 |
_config_vars="$_config_vars preferred_aps blacklist_aps" |
384 |
|
385 |
diff --git a/net/iwconfig.sh.BSD.in b/net/iwconfig.sh.BSD.in |
386 |
index 3acaf66..97a1d13 100644 |
387 |
--- a/net/iwconfig.sh.BSD.in |
388 |
+++ b/net/iwconfig.sh.BSD.in |
389 |
@@ -1,5 +1,6 @@ |
390 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
391 |
# Released under the 2-clause BSD license. |
392 |
+# shellcheck shell=sh disable=SC1008 |
393 |
|
394 |
_config_vars="$_config_vars ssid mode associate_timeout preferred_aps" |
395 |
_config_vars="$_config_vars blacklist_aps" |
396 |
|
397 |
diff --git a/net/iwconfig.sh.Linux.in b/net/iwconfig.sh.Linux.in |
398 |
index 293bc1f..02f748d 100644 |
399 |
--- a/net/iwconfig.sh.Linux.in |
400 |
+++ b/net/iwconfig.sh.Linux.in |
401 |
@@ -1,5 +1,6 @@ |
402 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
403 |
# Released under the 2-clause BSD license. |
404 |
+# shellcheck shell=sh disable=SC1008 |
405 |
|
406 |
_config_vars="$_config_vars ssid mode associate_timeout sleep_scan" |
407 |
_config_vars="$_config_vars preferred_aps blacklist_aps" |
408 |
|
409 |
diff --git a/net/l2tp.sh b/net/l2tp.sh |
410 |
index dec1986..7c5b064 100644 |
411 |
--- a/net/l2tp.sh |
412 |
+++ b/net/l2tp.sh |
413 |
@@ -1,5 +1,6 @@ |
414 |
# Copyright (c) 2016 Emeric Verschuur <emeric@×××××××.org> |
415 |
# All rights reserved. Released under the 2-clause BSD license. |
416 |
+# shellcheck shell=sh disable=SC1008 |
417 |
|
418 |
l2tp_depend() |
419 |
{ |
420 |
|
421 |
diff --git a/net/macchanger.sh b/net/macchanger.sh |
422 |
index ae9ff9b..d87d96e 100644 |
423 |
--- a/net/macchanger.sh |
424 |
+++ b/net/macchanger.sh |
425 |
@@ -1,5 +1,6 @@ |
426 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
427 |
# Released under the 2-clause BSD license. |
428 |
+# shellcheck shell=sh disable=SC1008 |
429 |
|
430 |
macchanger_depend() |
431 |
{ |
432 |
|
433 |
diff --git a/net/macnet.sh b/net/macnet.sh |
434 |
index 1ec2ad7..b51527e 100644 |
435 |
--- a/net/macnet.sh |
436 |
+++ b/net/macnet.sh |
437 |
@@ -1,5 +1,6 @@ |
438 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
439 |
# Released under the 2-clause BSD license. |
440 |
+# shellcheck shell=sh disable=SC1008 |
441 |
|
442 |
macnet_depend() |
443 |
{ |
444 |
|
445 |
diff --git a/net/macvlan.sh b/net/macvlan.sh |
446 |
index 1b95f5c..8d55717 100644 |
447 |
--- a/net/macvlan.sh |
448 |
+++ b/net/macvlan.sh |
449 |
@@ -2,6 +2,7 @@ |
450 |
# based on vlan.sh & tuntap.sh |
451 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
452 |
# All rights reserved. Released under the 2-clause BSD license. |
453 |
+# shellcheck shell=sh disable=SC1008 |
454 |
|
455 |
macvlan_depend() |
456 |
{ |
457 |
|
458 |
diff --git a/net/netplugd.sh b/net/netplugd.sh |
459 |
index d7d937d..283f312 100644 |
460 |
--- a/net/netplugd.sh |
461 |
+++ b/net/netplugd.sh |
462 |
@@ -1,5 +1,6 @@ |
463 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
464 |
# Released under the 2-clause BSD license. |
465 |
+# shellcheck shell=sh disable=SC1008 |
466 |
|
467 |
_config_vars="$_config_vars plug_timeout" |
468 |
|
469 |
|
470 |
diff --git a/net/pppd.sh b/net/pppd.sh |
471 |
index ee5e7c2..6ca1396 100644 |
472 |
--- a/net/pppd.sh |
473 |
+++ b/net/pppd.sh |
474 |
@@ -1,6 +1,7 @@ |
475 |
# Copyright (c) 2005-2007 Gentoo Foundation |
476 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
477 |
# Released under the 2-clause BSD license. |
478 |
+# shellcheck shell=sh disable=SC1008 |
479 |
|
480 |
pppd_depend() |
481 |
{ |
482 |
|
483 |
diff --git a/net/pump.sh b/net/pump.sh |
484 |
index ddd454c..270b37d 100644 |
485 |
--- a/net/pump.sh |
486 |
+++ b/net/pump.sh |
487 |
@@ -1,5 +1,6 @@ |
488 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
489 |
# Released under the 2-clause BSD license. |
490 |
+# shellcheck shell=sh disable=SC1008 |
491 |
|
492 |
pump_depend() |
493 |
{ |
494 |
|
495 |
diff --git a/net/ssidnet.sh b/net/ssidnet.sh |
496 |
index b0eed56..376d6f0 100644 |
497 |
--- a/net/ssidnet.sh |
498 |
+++ b/net/ssidnet.sh |
499 |
@@ -1,5 +1,6 @@ |
500 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
501 |
# Released under the 2-clause BSD license. |
502 |
+# shellcheck shell=sh disable=SC1008 |
503 |
|
504 |
ssidnet_depend() |
505 |
{ |
506 |
|
507 |
diff --git a/net/system.sh b/net/system.sh |
508 |
index 98017d5..1f81493 100644 |
509 |
--- a/net/system.sh |
510 |
+++ b/net/system.sh |
511 |
@@ -1,5 +1,6 @@ |
512 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
513 |
# Released under the 2-clause BSD license. |
514 |
+# shellcheck shell=sh disable=SC1008 |
515 |
|
516 |
_config_vars="$_config_vars dns_servers dns_domain dns_search" |
517 |
_config_vars="$_config_vars dns_sortlist dns_options" |
518 |
|
519 |
diff --git a/net/tuntap.sh b/net/tuntap.sh |
520 |
index 331fd83..29a7e46 100644 |
521 |
--- a/net/tuntap.sh |
522 |
+++ b/net/tuntap.sh |
523 |
@@ -1,5 +1,6 @@ |
524 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
525 |
# Released under the 2-clause BSD license. |
526 |
+# shellcheck shell=sh disable=SC1008 |
527 |
|
528 |
tuntap_depend() |
529 |
{ |
530 |
|
531 |
diff --git a/net/udhcpc.sh.Linux.in b/net/udhcpc.sh.Linux.in |
532 |
index 030d89e..53fe5eb 100644 |
533 |
--- a/net/udhcpc.sh.Linux.in |
534 |
+++ b/net/udhcpc.sh.Linux.in |
535 |
@@ -1,5 +1,6 @@ |
536 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
537 |
# Released under the 2-clause BSD license. |
538 |
+# shellcheck shell=sh disable=SC1008 |
539 |
|
540 |
udhcpc_depend() |
541 |
{ |
542 |
|
543 |
diff --git a/net/veth.sh b/net/veth.sh |
544 |
index 5ff6587..80f9a8e 100644 |
545 |
--- a/net/veth.sh |
546 |
+++ b/net/veth.sh |
547 |
@@ -1,5 +1,6 @@ |
548 |
# Copyright (c) 2018 |
549 |
# Released under the 2-clause BSD license. |
550 |
+# shellcheck shell=sh disable=SC1008 |
551 |
|
552 |
veth_depend() |
553 |
{ |
554 |
|
555 |
diff --git a/net/vlan.sh b/net/vlan.sh |
556 |
index 194a6b0..da9f9c0 100644 |
557 |
--- a/net/vlan.sh |
558 |
+++ b/net/vlan.sh |
559 |
@@ -1,5 +1,6 @@ |
560 |
# Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name> |
561 |
# Released under the 2-clause BSD license. |
562 |
+# shellcheck shell=sh disable=SC1008 |
563 |
|
564 |
vlan_depend() |
565 |
{ |
566 |
|
567 |
diff --git a/net/wireguard.sh b/net/wireguard.sh |
568 |
index 8af76ca..a9aac69 100644 |
569 |
--- a/net/wireguard.sh |
570 |
+++ b/net/wireguard.sh |
571 |
@@ -1,6 +1,7 @@ |
572 |
# Copyright (c) 2016 Joakim Sindholt (zhasha) |
573 |
# Copyright (c) 2018 Jason A. Donenfeld, |
574 |
# Released under the 2-clause BSD license. |
575 |
+# shellcheck shell=sh disable=SC1008 |
576 |
|
577 |
wireguard_depend() |
578 |
{ |
579 |
|
580 |
diff --git a/net/wpa_supplicant.sh b/net/wpa_supplicant.sh |
581 |
index 594a157..607d4e1 100644 |
582 |
--- a/net/wpa_supplicant.sh |
583 |
+++ b/net/wpa_supplicant.sh |
584 |
@@ -1,5 +1,6 @@ |
585 |
# Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name> |
586 |
# Released under the 2-clause BSD license. |
587 |
+# shellcheck shell=sh disable=SC1008 |
588 |
|
589 |
wpa_supplicant_depend() |
590 |
{ |
591 |
|
592 |
diff --git a/sh/functions.sh b/sh/functions.sh |
593 |
index 832e58e..994cf6d 100644 |
594 |
--- a/sh/functions.sh |
595 |
+++ b/sh/functions.sh |
596 |
@@ -1,5 +1,6 @@ |
597 |
# Compatibility layer for netifrc to work with multiple init |
598 |
# systems. |
599 |
+# shellcheck shell=sh disable=SC1008 |
600 |
|
601 |
# First check whether e* commands are present in the environment |
602 |
if [ x$RC_GOT_FUNCTIONS = xyes -o -n "$(command -v ebegin 2>/dev/null)" ]; then |
603 |
|
604 |
diff --git a/sh/ifwatchd-carrier.sh.in b/sh/ifwatchd-carrier.sh.in |
605 |
index 5b5d8b3..ecfada3 100644 |
606 |
--- a/sh/ifwatchd-carrier.sh.in |
607 |
+++ b/sh/ifwatchd-carrier.sh.in |
608 |
@@ -1,5 +1,6 @@ |
609 |
#!@SHELL@ |
610 |
# Wrapper for ifwatchd(8) |
611 |
+# shellcheck shell=sh disable=SC1008 |
612 |
|
613 |
IN_BACKGROUND=yes ; export IN_BACKGROUND |
614 |
$RC_SERVICE --quiet start |
615 |
|
616 |
diff --git a/sh/ifwatchd-nocarrier.sh.in b/sh/ifwatchd-nocarrier.sh.in |
617 |
index bbecfe8..357cdf7 100644 |
618 |
--- a/sh/ifwatchd-nocarrier.sh.in |
619 |
+++ b/sh/ifwatchd-nocarrier.sh.in |
620 |
@@ -1,5 +1,6 @@ |
621 |
#!@SHELL@ |
622 |
# Wrapper for ifwatchd(8) |
623 |
+# shellcheck shell=sh disable=SC1008 |
624 |
|
625 |
IN_BACKGROUND=yes ; export IN_BACKGROUND |
626 |
$RC_SERVICE --quiet stop |
627 |
|
628 |
diff --git a/sh/systemd-wrapper.sh.in b/sh/systemd-wrapper.sh.in |
629 |
index b26f976..7004a91 100644 |
630 |
--- a/sh/systemd-wrapper.sh.in |
631 |
+++ b/sh/systemd-wrapper.sh.in |
632 |
@@ -1,4 +1,5 @@ |
633 |
#!/bin/sh |
634 |
+# shellcheck shell=sh disable=SC1008 |
635 |
|
636 |
CONFDIR="@CONFDIR@" |
637 |
LIBEXECDIR="@LIBEXECDIR@/sh" |
638 |
|
639 |
diff --git a/sh/udhcpc-hook.sh.in b/sh/udhcpc-hook.sh.in |
640 |
index bd03859..13ea336 100644 |
641 |
--- a/sh/udhcpc-hook.sh.in |
642 |
+++ b/sh/udhcpc-hook.sh.in |
643 |
@@ -1,5 +1,6 @@ |
644 |
#!@SHELL@ |
645 |
# busybox udhcp setup script |
646 |
+# shellcheck shell=sh disable=SC1008 |
647 |
|
648 |
PATH=/bin:/usr/bin:/sbin:/usr/sbin |