aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/embedded_scripts8
-rwxr-xr-xscripts/gen_build_files.sh2
2 files changed, 9 insertions, 1 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
diff --git a/scripts/gen_build_files.sh b/scripts/gen_build_files.sh
index 362632df3..92de681ac 100755
--- a/scripts/gen_build_files.sh
+++ b/scripts/gen_build_files.sh
@@ -25,7 +25,7 @@ custom_scripts()
25 then 25 then
26 for i in $(cd "$custom_loc"; ls * 2>/dev/null) 26 for i in $(cd "$custom_loc"; ls * 2>/dev/null)
27 do 27 do
28 printf "APPLET_SCRIPTED(%s, scripted, BB_DIR_USR_BIN, BB_SUID_DROP, scripted)\n" $i; 28 printf "IF_FEATURE_SH_EMBEDDED_SCRIPTS(APPLET_SCRIPTED(%s, scripted, BB_DIR_USR_BIN, BB_SUID_DROP, scripted))\n" $i;
29 done 29 done
30 fi 30 fi
31} 31}