aboutsummaryrefslogtreecommitdiff
path: root/scripts/embedded_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/embedded_scripts')
-rwxr-xr-xscripts/embedded_scripts8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/embedded_scripts b/scripts/embedded_scripts
index 86ad44d1d..aa7bf3e8a 100755
--- a/scripts/embedded_scripts
+++ b/scripts/embedded_scripts
@@ -1,5 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2 2
3. ./.config || exit 1
4
3target="$1" 5target="$1"
4custom_loc="$2" 6custom_loc="$2"
5applet_loc="$3" 7applet_loc="$3"
@@ -8,6 +10,12 @@ test "$target" || exit 1
8test "$SED" || SED=sed 10test "$SED" || SED=sed
9test "$DD" || DD=dd 11test "$DD" || DD=dd
10 12
13if [ x"$CONFIG_FEATURE_SH_EMBEDDED_SCRIPTS" != x"y" ]
14then
15 printf '#define NUM_SCRIPTS 0\n' >"$target"
16 exit 0
17fi
18
11# Some people were bitten by their system lacking a (proper) od 19# Some people were bitten by their system lacking a (proper) od
12od -v -b </dev/null >/dev/null 20od -v -b </dev/null >/dev/null
13if test $? != 0; then 21if test $? != 0; then