scripts: avoid hard-coded paths in scripts
authorJohn Crispin <john@openwrt.org>
Fri, 29 Apr 2016 11:34:48 +0000 (11:34 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 29 Apr 2016 11:34:48 +0000 (11:34 +0000)
Signed-off-by: Iblis Lin <e196819@hotmail.com>
SVN-Revision: 49267

scripts/brcmImage.pl
scripts/deptest.sh
scripts/feeds
scripts/mkits.sh
scripts/pad_image
scripts/redboot-script.pl
scripts/remote-gdb

index 9a3acb43a4dbad1b32d0b58b6857e29c915fd9e1..60a59f2bf56140fe3f206e4b2f542302a938b99c 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;