mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
base-files: fix telnet login on musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43006 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user