File mkinitrd-boot.sh of Package bootchart
#!/bin/bash # #%stage: setup #%provides: killprogs #%depends: killblogd2 #%programs: /sbin/bootchartd /sbin/accton sleep usleep mv tar /bin/gzip hostname uname /bin/grep #%if: "$bootchart" #%dontshow # ##### stop bootchartd ## ## fake a running xterm/getty (symlink to sleep) so bootchartd stops logging ## # . /etc/bootchartd.conf stopinitrd 5 while [ -f "$BOOTLOG_LOCK" ]; do usleep 50000 done if test "$init" == "/sbin/init"; then init=/sbin/bootchartd fi