Ticket #5032: openwrt-init2-trunk.patch

File openwrt-init2-trunk.patch, 1.2 KB (added by ambro@…, 9 years ago)

fix, show shell early on boot

  • package/base-files/files/etc/init.d/boot

     
    5252 
    5353        killall -q hotplug2 
    5454        [ -x /sbin/hotplug2 ] && /sbin/hotplug2 --override --persistent \ 
    55                         --max-children 1 --no-coldplug & 
     55                        --max-children 1 --no-coldplug >/dev/null 2>&1 & 
    5656 
    5757        # the coldplugging of network interfaces needs to happen later, so we do it manually here 
    5858        for iface in $(awk -F: '/:/ {print $1}' /proc/net/dev); do 
  • package/base-files/files/etc/init.d/rcS

     
    11#!/bin/sh 
    22# Copyright (C) 2006 OpenWrt.org 
    33 
     4run_scripts() { 
     5        for i in /etc/rc.d/$1*; do 
     6                [ -x $i ] && $i $2 2>&1 
     7        done | $LOGGER 
     8} 
     9 
    410LOGGER="cat" 
    511[ -x /usr/bin/logger ] && LOGGER="logger -s -p 6 -t sysinit" 
    612 
    7 { 
    8         for i in /etc/rc.d/$1*; do 
    9                 [ -x $i ] && $i $2 2>&1 
    10         done  
    11 } | $LOGGER & 
     13if [ "$1" = "S" ]; then 
     14        run_scripts "$1" "$2" & 
     15else 
     16        run_scripts "$1" "$2" 
     17fi