Changeset 2846


Ignore:
Timestamp:
Jun 30, 2011, 7:56:11 PM (8 years ago)
Author:
bruno
Message:

r4191@vgiles: bruno | 2011-06-30 18:51:22 +0200

  • Improve logging in init script
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/rootfs/sbin/init

    r2845 r2846  
    108108    if which loadkeys > /dev/null 2> /dev/null ; then
    109109        loadkeys $fname
     110        LogIt "Using $fname keyboard map." 1
    110111    else
    111112        LogIt "Using default US keyboard map." 1
     
    289290    # Inspiration from Mandriva 2008.0 startup script
    290291    echo "Preparing udev environment..."
     292    LogIt "Preparing udev environment..."
    291293    mv /dev /dev.static
    292294    mkdir /dev
     
    313315        echo "Waiting for udev to start..."
    314316        sleep 5
     317        LogIt "udev started manually"
    315318    fi
    316319    mkdir -p /dev/.udev/queue/
     
    323326    if [ -x /sbin/udevsettle ]; then
    324327        /sbin/udevsettle --timeout=10
     328        LogIt "Discovering with udevsettle"
    325329    elif [ -x /sbin/udevadm ]; then
    326         /sbin/udevadm trigger
     330        UdevadmTrigger
    327331        /sbin/udevadm settle --timeout=10
     332        LogIt "Discovering with udevadm"
    328333    fi
    329334    # It seems we need to have more static devs on some distro were
     
    366371    fi
    367372}
    368 
    369 
    370 #RunDevfsd() {
    371 #    loc=`which devfsd 2> /dev/null`
    372 #    if [ "$loc" != "" ] ; then
    373 #        LogIt "Starting devfsd"
    374 #        devfsd /dev &
    375 #        sleep 5
    376 #    fi
    377 #}
    378 
    379373
    380374
     
    506500                /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
    507501            fi
     502            LogIt "Multipath started"
    508503        fi
    509504    fi
     
    701696
    702697ExtractDataDisksAndLoadModules() {
    703     echo "Installing additional tools ..."
     698    LogIt "Installing additional tools ..." 1
    704699    install-additional-tools
    705700    # Keep the kernel silent again
Note: See TracChangeset for help on using the changeset viewer.