base-files: fix telnet login on musl

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43006
master
Felix Fietkau 10 years ago
parent 2abd1b817e
commit 99a651fd50
  1. 4
      package/base-files/files/bin/login.sh

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2006-2011 OpenWrt.org # Copyright (C) 2006-2011 OpenWrt.org
if ( ! grep -qs '^root:[!x]\?:' /etc/shadow || \ if ( ! grep -qsE '^root:[!x]?:' /etc/shadow || \
! grep -qs '^root:[!x]\?:' /etc/passwd ) && \ ! grep -qsE '^root:[!x]?:' /etc/passwd ) && \
[ -z "$FAILSAFE" ] [ -z "$FAILSAFE" ]
then then
echo "Login failed." echo "Login failed."

Loading…
Cancel
Save