aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2016-04-29 11:34:48 +0000
committerLuka Perkov <luka@openwrt.org>2016-06-19 19:14:45 +0200
commit9241c0dd55d50ccdbaa7a6f08f5283422fc859fd (patch)
tree7909a56ab205d4da386dd0ec503f4c68d8877010 /scripts
parentca78fd16b547604eae6757241acacf30bbe2904f (diff)
downloadmaster-187ad058-9241c0dd55d50ccdbaa7a6f08f5283422fc859fd.tar.gz
master-187ad058-9241c0dd55d50ccdbaa7a6f08f5283422fc859fd.tar.bz2
master-187ad058-9241c0dd55d50ccdbaa7a6f08f5283422fc859fd.zip
scripts: avoid hard-coded paths in scripts
Signed-off-by: Iblis Lin <e196819@hotmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49267 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/brcmImage.pl2
-rwxr-xr-xscripts/deptest.sh2
-rwxr-xr-xscripts/feeds2
-rwxr-xr-xscripts/mkits.sh2
-rwxr-xr-xscripts/pad_image2
-rwxr-xr-xscripts/redboot-script.pl2
-rwxr-xr-xscripts/remote-gdb2
7 files changed, 7 insertions, 7 deletions
diff --git a/scripts/brcmImage.pl b/scripts/brcmImage.pl
index 9a3acb43a4..60a59f2bf5 100755
--- a/scripts/brcmImage.pl
+++ b/scripts/brcmImage.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright (C) 2009 Henk Vergonet <Henk.Vergonet@gmail.com>
#
diff --git a/scripts/deptest.sh b/scripts/deptest.sh
index 047a0ce4d4..03da9f568e 100755
--- a/scripts/deptest.sh
+++ b/scripts/deptest.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Automated OpenWrt package dependency checker
#
diff --git a/scripts/feeds b/scripts/feeds
index 79b5284e9e..2b88eb8193 100755
--- a/scripts/feeds
+++ b/scripts/feeds
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
use Getopt::Std;
use FindBin;
use Cwd;
diff --git a/scripts/mkits.sh b/scripts/mkits.sh
index 6b5100e1a2..8857996eba 100755
--- a/scripts/mkits.sh
+++ b/scripts/mkits.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed under the terms of the GNU GPL License version 2 or later.
#
diff --git a/scripts/pad_image b/scripts/pad_image
index 14f1499076..b1941a28d8 100755
--- a/scripts/pad_image
+++ b/scripts/pad_image
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
function usage {
echo "Usage: prepare_image image_type kernel_image rootfs_image header_size"
diff --git a/scripts/redboot-script.pl b/scripts/redboot-script.pl
index 123ebe32a3..e2d1264705 100755
--- a/scripts/redboot-script.pl
+++ b/scripts/redboot-script.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Script for generating redboot configs, based on brcmImage.pl
#
diff --git a/scripts/remote-gdb b/scripts/remote-gdb
index cd59033e7a..52306639fc 100755
--- a/scripts/remote-gdb
+++ b/scripts/remote-gdb
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
use strict;
use warnings;