mirror of
https://github.com/openwrt/openwrt.git
synced 2025-04-13 22:23:38 +00:00
base-files: fix telnet login on musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43006
This commit is contained in:
parent
2abd1b817e
commit
99a651fd50
@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
|
||||
if ( ! grep -qs '^root:[!x]\?:' /etc/shadow || \
|
||||
! grep -qs '^root:[!x]\?:' /etc/passwd ) && \
|
||||
if ( ! grep -qsE '^root:[!x]?:' /etc/shadow || \
|
||||
! grep -qsE '^root:[!x]?:' /etc/passwd ) && \
|
||||
[ -z "$FAILSAFE" ]
|
||||
then
|
||||
echo "Login failed."
|
||||
|
Loading…
x
Reference in New Issue
Block a user