mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-11 20:50:15 +02:00
[package] base-files: another empty password check fix (#10440)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29208 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e9531fc3c0
commit
b668d3deb8
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=base-files
|
PKG_NAME:=base-files
|
||||||
PKG_RELEASE:=96
|
PKG_RELEASE:=97
|
||||||
|
|
||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||||
PKG_BUILD_DEPENDS:=opkg/host
|
PKG_BUILD_DEPENDS:=opkg/host
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Copyright (C) 2006-2011 OpenWrt.org
|
# 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 ) && \
|
! grep -qs '^root:[!x]\?:' /etc/passwd ) && \
|
||||||
[ -z "$FAILSAFE" ]
|
[ -z "$FAILSAFE" ]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user