aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]configure11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure b/configure
index a7a427f6..14c9c659 100644..100755
--- a/configure
+++ b/configure
@@ -1,7 +1,16 @@
-# Toybox configuration file.
+#!/bin/bash
# This sets environment variables used by scripts/make.sh
+# People run ./configure out of habit, so do "defconfig" for them.
+
+if [ "$(basename "$0")" == configure ]
+then
+ echo "Assuming you want 'make defconfig', but you should probably check the README."
+ make defconfig
+ exit $?
+fi
+
# A synonym.
[ -z "$CROSS_COMPILE" ] && CROSS_COMPILE="$CROSS"