diff --git a/packages/bsp/common/usr/lib/armbian/armbian-firstlogin b/packages/bsp/common/usr/lib/armbian/armbian-firstlogin old mode 100755 new mode 100644 index 83bb5dd15a..1302616b35 --- a/packages/bsp/common/usr/lib/armbian/armbian-firstlogin +++ b/packages/bsp/common/usr/lib/armbian/armbian-firstlogin @@ -262,7 +262,7 @@ add_user() result="$(cracklib-check <<<"$password")" okay="$(awk -F': ' '{ print $2}' <<<"$result")" if [[ "$okay" != "OK" ]]; then - echo -e "\n\e[0;31mWarning:\x1B[0m Weak password!" + echo -e "\n\e[0;31mWarning:\x1B[0m Weak password, $okay \b!" fi echo -e "" read -e -p "Please provide your real name: " -i "${RealUserName^}" RealName @@ -348,7 +348,7 @@ if [[ -f /root/.not_logged_in_yet && -n $(tty) ]]; then result="$(cracklib-check <<<"$password")" okay="$(awk -F': ' '{ print $2}' <<<"$result")" if [[ "$okay" != "OK" ]]; then - echo -e "\n\e[0;31mWarning:\x1B[0m $okay!" + echo -e "\n\e[0;31mWarning:\x1B[0m Weak password, $okay \b!" (echo "$first_input";echo "$second_input";) | passwd root >/dev/null 2>&1 fi break