compat-wireless: use portable #! for bash scripts
authorFelix Fietkau <nbd@openwrt.org>
Mon, 27 Feb 2012 14:35:46 +0000 (15:35 +0100)
committerLuis R. Rodriguez <mcgrof@frijolero.org>
Tue, 28 Feb 2012 01:20:40 +0000 (17:20 -0800)
Some systems (e.g. FreeBSD) do not have bash in /bin
Based on a patch by Jo-Philipp Wich

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
scripts/admin-clean.sh
scripts/admin-refresh.sh
scripts/admin-update.sh
scripts/check_config.sh
scripts/driver-select
scripts/gen-compat-autoconf.sh
scripts/gen-stable-release.sh
scripts/skip-colors

index 86d5460c247f0b3c3827f74603beb9869d11128c..81398f2a28f7f5504d939acd4ef966840d62f8bd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 if [ -d net ] ; then
        make clean
 fi
index 5848b1e9732f7baef868fddf03284430bff1c4fb..caf63e06c17638844a094136ac57f0c6a2481ee0 100755 (executable)
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/usr/bin/env bash
 ./scripts/admin-clean.sh $@
 ./scripts/admin-update.sh $@
index 9c1c5a459255265da07f24fc70b0a0a9628bd837..369cc9619ebd3e7d767aed3e55a3e7e75a0aed7e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # 
 # Copyright 2007, 2008, 2010   Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
 #
index 1804976f4c462439afcdd70b15d2b69c7dca3083..1a0844276105364a086538537306118cb731c4fb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # This script checks the compat-wireless configuration file and if changes were made
 # regenerates the compat_autoconf header.
 
index 3855bc50d764000f6838417a60b6bb8bf24f0004..db07ee5d4b782f62afc9f580bf18417e3559f5b4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # Copyright 2009        Luis R. Rodriguez <mcgrof@gmail.com>
 #
 # This script allows you to select your compat-wireless driver and
index 58a1c517bfb44c3c43354defc939a94f5faf76cf..87257c6d30a925fa260790794c6f9d317e197f6b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # 
 # Copyright 2007       Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
 #
index a27107473f9ed19eabe3b183a80ebed1f7298e4f..9764730a4250d73477e9192581dc2ca88a15ae4b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # Copyright 2009  Luis R. Rodriguez <mcgrof@gmail.com>
 #
 # You can use this to make stable compat-wireless releases
index 121626fb161c421c5f3260cbdc54bc66a79a2946..71238082b626aa96568d43072d7856bdbc5565e5 100755 (executable)
@@ -1,2 +1,2 @@
-#!/bin/bash
+#!/usr/bin/env bash
 perl -pe 's|(\e)\[(\d+)(;*)(\d*)(\w)||g'