Changeset 863


Ignore:
Timestamp:
2005-05-13T02:37:19+02:00 (13 years ago)
Author:
mbm
Message:

fix startup logging

Location:
trunk/openwrt/target/default/target_skeleton/etc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/target/default/target_skeleton/etc/init.d/S10boot

    r754 r863  
    11#!/bin/sh 
    2 klogd 
    3 syslogd -C 16  
    42echo "S" > /proc/jffs2_bbc 
    53 
     
    2624} 
    2725 
    28 cat /etc/modules /etc/modules.d/* | sed 's/^[^#]/insmod &/' 2>&-|ash 
     26cat /etc/modules /etc/modules.d/*|sed 's/^[^#]/insmod &/' 2>&-|ash 
    2927 
    3028ifconfig lo 127.0.0.1 up 
     
    3331HOSTNAME=$(nvram get wan_hostname) 
    3432HOSTNAME=${HOSTNAME%%.*} 
    35 echo ${HOSTNAME:=OpenWrt} > /proc/sys/kernel/hostname 
     33echo ${HOSTNAME:=OpenWrt}>/proc/sys/kernel/hostname 
    3634 
    3735vconfig set_name_type VLAN_PLUS_VID_NO_PAD 
     
    3937# automagically run firstboot 
    4038[ -z "$FAILSAFE" ] && { 
    41         { mount | grep jffs2 1>&-; } || firstboot 
     39        { mount|grep jffs2 1>&-; } || firstboot 
    4240} 
  • trunk/openwrt/target/default/target_skeleton/etc/init.d/rcS

    r816 r863  
    11#!/bin/sh 
    2 # Start all init scripts in /etc/init.d 
    3 # executing them in numerical order. 
    4 # 
     2syslogd -C 16 
     3klogd 
    54for i in /etc/init.d/S* ;do 
    6   [ -f "$i" ] && $i start 
     5  $i start 2>&1 | logger -s -p 6 -t '' 
    76done 
  • trunk/openwrt/target/default/target_skeleton/etc/inittab

    r816 r863  
    1 ::sysinit:/etc/init.d/rcS 2>&1 | logger -p 6 -t '' -s 
     1::sysinit:/etc/init.d/rcS 
    22::shutdown:/sbin/halt 
    33tts/0::askfirst:/bin/ash --login 
Note: See TracChangeset for help on using the changeset viewer.