base-files: another empty password check fix (#10440)

SVN-Revision: 29208
master
Jo-Philipp Wich 13 years ago
parent 33443d2a8c
commit 010e58d209
  1. 2
      package/base-files/Makefile
  2. 2
      package/base-files/files/bin/login.sh

@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=base-files
PKG_RELEASE:=96
PKG_RELEASE:=97
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
PKG_BUILD_DEPENDS:=opkg/host

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

Loading…
Cancel
Save