diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/embedded_scripts | 8 | ||||
| -rwxr-xr-x | scripts/gen_build_files.sh | 2 |
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 | |||
| 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 |
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 | } |
