diff options
Diffstat (limited to 'scripts/embedded_scripts')
-rwxr-xr-x | scripts/embedded_scripts | 8 |
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 | |||
3 | target="$1" | 5 | target="$1" |
4 | custom_loc="$2" | 6 | custom_loc="$2" |
5 | applet_loc="$3" | 7 | applet_loc="$3" |
@@ -8,6 +10,12 @@ test "$target" || exit 1 | |||
8 | test "$SED" || SED=sed | 10 | test "$SED" || SED=sed |
9 | test "$DD" || DD=dd | 11 | test "$DD" || DD=dd |
10 | 12 | ||
13 | if [ x"$CONFIG_FEATURE_SH_EMBEDDED_SCRIPTS" != x"y" ] | ||
14 | then | ||
15 | printf '#define NUM_SCRIPTS 0\n' >"$target" | ||
16 | exit 0 | ||
17 | fi | ||
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 |
12 | od -v -b </dev/null >/dev/null | 20 | od -v -b </dev/null >/dev/null |
13 | if test $? != 0; then | 21 | if test $? != 0; then |