diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2012-12-28 14:07:33 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2012-12-30 18:00:16 +0100 |
commit | a45871bfc6a3f800548954dd364b5f53e81804ab (patch) | |
tree | c096d3defbcb6a8abfc424f2a24f6f14ebdbea47 /support/dependencies | |
parent | aa5d13568d193b741d4c20fb8670a3f7334efdcb (diff) | |
download | buildroot-novena-a45871bfc6a3f800548954dd364b5f53e81804ab.tar.gz buildroot-novena-a45871bfc6a3f800548954dd364b5f53e81804ab.zip |
target: add option to set the root password
Add an option in the menuconfig to specify a root password.
If set to empty, no root password is created; otherwise, the password is
encrypted using MD5 (MD5 is not the default for crypt(3), DES-56 is, but
MD5 is widely available, not-so-strong, but not-so-weak either).
Add a check for 'mkpasswd' as a new dependency.
[Peter: fix typo/capitilization and simplify logic]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'support/dependencies')
-rwxr-xr-x | support/dependencies/dependencies.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/support/dependencies/dependencies.sh b/support/dependencies/dependencies.sh index 7a02512c0..eb5a48184 100755 --- a/support/dependencies/dependencies.sh +++ b/support/dependencies/dependencies.sh @@ -158,6 +158,7 @@ if grep ^BR2_TOOLCHAIN_BUILDROOT=y $CONFIG_FILE > /dev/null && \ exit 1 ; fi fi + if grep -q ^BR2_PACKAGE_CLASSPATH=y $CONFIG_FILE ; then for prog in javac jar; do if ! which $prog > /dev/null ; then @@ -166,3 +167,11 @@ if grep -q ^BR2_PACKAGE_CLASSPATH=y $CONFIG_FILE ; then fi done fi + +if grep -E '^BR2_TARGET_GENERIC_ROOT_PASSWD=".+"$' $CONFIG_FILE > /dev/null 2>&1; then + if ! which mkpasswd > /dev/null 2>&1; then + /bin/echo -e "\nYou need the 'mkpasswd' utility to set the root password\n" + /bin/echo -e "(in Debian/ubuntu, 'mkpasswd' provided by the whois package)\n" + exit 1 + fi +fi |