scripts: avoid hard-coded paths in scripts
authorIblis Lin <e196819@hotmail.com>
Thu, 28 Apr 2016 12:34:13 +0000 (20:34 +0800)
committerJo-Philipp Wich <jo@mein.io>
Thu, 28 Apr 2016 14:43:28 +0000 (16:43 +0200)
Signed-off-by: Iblis Lin <e196819@hotmail.com>
scripts/brcmImage.pl
scripts/deptest.sh
scripts/feeds
scripts/mkits.sh
scripts/pad_image
scripts/redboot-script.pl
scripts/remote-gdb

index 265c1744bfdcdb24c63bd8ad0df3a906120e1f61..aab86d6d912dec182a431b2e36751f9ed9290902 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 #    Copyright (C) 2009        Henk Vergonet <Henk.Vergonet@gmail.com>
 #
index 047a0ce4d44d0ec9736945e3e9992fd24862d52e..03da9f568e7748311d0814945b2fa0fce82821a8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Automated OpenWrt package dependency checker
 #
index 79b5284e9efe5556f79f77e29fd787fd719a5c72..2b88eb8193367c18567a0ffd969e6bccff59b478 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 use Getopt::Std;
 use FindBin;
 use Cwd;
index 6b5100e1a2ac9d84a703700aaa3e1491ffcf7cd9..8857996eba222fce44846242b13e6d66e456f267 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Licensed under the terms of the GNU GPL License version 2 or later.
 #
index 14f1499076e6ab3c5dabb778266b002cbc1866a8..b1941a28d8d3e6728624e3c6c62480f2371fbe4f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 function usage {
   echo "Usage: prepare_image image_type kernel_image rootfs_image header_size"
index 123ebe32a3ea997c4ce27275657dd626496a6368..e2d126470577465619d1073c1dca7526e41999a9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Script for generating redboot configs, based on brcmImage.pl
 #
index cd59033e7a5399d0ee6206f219120fa1deeea359..52306639fcb0772413e8b9d02148fc4b782d580c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 use strict;
 use warnings;