Changeset 28943


Ignore:
Timestamp:
2011-11-11T14:25:31+01:00 (6 years ago)
Author:
jow
Message:

[package] base-files: now that the initial password is completely empty (and not primed with "!") adjust login.sh for it to make telnetd available again

Location:
trunk/package/base-files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/Makefile

    r28936 r28943  
    1111 
    1212PKG_NAME:=base-files 
    13 PKG_RELEASE:=92 
     13PKG_RELEASE:=93 
    1414 
    1515PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ 
  • trunk/package/base-files/files/bin/login.sh

    r22282 r28943  
    11#!/bin/sh 
    2 # Copyright (C) 2006-2010 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33 
    4 if grep -qs '^root:[^!]' /etc/passwd /etc/shadow && [ -z "$FAILSAFE" ]; then 
     4if grep -qs '^root:[^!:]' /etc/passwd /etc/shadow && [ -z "$FAILSAFE" ]; then 
    55        echo "Login failed." 
    66        exit 0 
Note: See TracChangeset for help on using the changeset viewer.