From 9dbb9507dbc3a6cb5ea0e3740c03c6b4bb83c610 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 27 Feb 2012 15:35:46 +0100 Subject: [PATCH] compat-wireless: use portable #! for bash scripts Some systems (e.g. FreeBSD) do not have bash in /bin Based on a patch by Jo-Philipp Wich Signed-off-by: Felix Fietkau Signed-off-by: Luis R. Rodriguez --- scripts/admin-clean.sh | 2 +- scripts/admin-refresh.sh | 2 +- scripts/admin-update.sh | 2 +- scripts/check_config.sh | 2 +- scripts/driver-select | 2 +- scripts/gen-compat-autoconf.sh | 2 +- scripts/gen-stable-release.sh | 2 +- scripts/skip-colors | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/admin-clean.sh b/scripts/admin-clean.sh index 86d5460c247f..81398f2a28f7 100755 --- a/scripts/admin-clean.sh +++ b/scripts/admin-clean.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -d net ] ; then make clean fi diff --git a/scripts/admin-refresh.sh b/scripts/admin-refresh.sh index 5848b1e9732f..caf63e06c176 100755 --- a/scripts/admin-refresh.sh +++ b/scripts/admin-refresh.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/env bash ./scripts/admin-clean.sh $@ ./scripts/admin-update.sh $@ diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh index 9c1c5a459255..369cc9619ebd 100755 --- a/scripts/admin-update.sh +++ b/scripts/admin-update.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2007, 2008, 2010 Luis R. Rodriguez # diff --git a/scripts/check_config.sh b/scripts/check_config.sh index 1804976f4c46..1a0844276105 100755 --- a/scripts/check_config.sh +++ b/scripts/check_config.sh @@ -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. diff --git a/scripts/driver-select b/scripts/driver-select index 3855bc50d764..db07ee5d4b78 100755 --- a/scripts/driver-select +++ b/scripts/driver-select @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2009 Luis R. Rodriguez # # This script allows you to select your compat-wireless driver and diff --git a/scripts/gen-compat-autoconf.sh b/scripts/gen-compat-autoconf.sh index 58a1c517bfb4..87257c6d30a9 100755 --- a/scripts/gen-compat-autoconf.sh +++ b/scripts/gen-compat-autoconf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2007 Luis R. Rodriguez # diff --git a/scripts/gen-stable-release.sh b/scripts/gen-stable-release.sh index a27107473f9e..9764730a4250 100755 --- a/scripts/gen-stable-release.sh +++ b/scripts/gen-stable-release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2009 Luis R. Rodriguez # # You can use this to make stable compat-wireless releases diff --git a/scripts/skip-colors b/scripts/skip-colors index 121626fb161c..71238082b626 100755 --- a/scripts/skip-colors +++ b/scripts/skip-colors @@ -1,2 +1,2 @@ -#!/bin/bash +#!/usr/bin/env bash perl -pe 's|(\e)\[(\d+)(;*)(\d*)(\w)||g' -- 2.30.2