Ticket #10440: telnetd-enable.patch

File telnetd-enable.patch, 482 bytes (added by zukky@…, 6 years ago)
  • package/base-files/files/bin/login.sh

     
    11#!/bin/sh 
    22# Copyright (C) 2006-2011 OpenWrt.org 
    33 
    4 if ( ! grep -qs '^root::' /etc/shadow || \ 
     4if ( ! grep -qs '^root:[!x]\?:' /etc/shadow || \ 
    55     ! grep -qs '^root:[!x]\?:' /etc/passwd ) && \ 
    66   [ -z "$FAILSAFE" ] 
    77then