2008-07-25 05:18:53 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#%stage: boot
|
2009-04-24 02:32:58 +02:00
|
|
|
#%depends: udev clock
|
2008-07-25 05:18:53 +02:00
|
|
|
#%programs: showconsole /sbin/blogd
|
|
|
|
#%if: -x /sbin/blogd
|
|
|
|
#%dontshow
|
|
|
|
#
|
|
|
|
##### blogd start
|
|
|
|
##
|
|
|
|
## This script starts blogd if this has not happened before.
|
|
|
|
##
|
|
|
|
## Command line parameters
|
|
|
|
## -----------------------
|
|
|
|
##
|
|
|
|
|
2009-04-29 01:44:57 +02:00
|
|
|
fboot=$(get_param fastboot)
|
|
|
|
quiet=$(get_param quiet)
|
|
|
|
|
|
|
|
if test -z "$fboot" -a -z "$quiet" -a -z "$REDIRECT" ; then
|
2008-07-25 05:18:53 +02:00
|
|
|
REDIRECT=$(showconsole 2>/dev/null)
|
|
|
|
if test -n "$REDIRECT" ; then
|
2008-11-20 16:27:15 +01:00
|
|
|
if test "$devpts" != "yes" ; then
|
|
|
|
mount -t devpts devpts /dev/pts
|
|
|
|
devpts=yes
|
|
|
|
fi
|
2008-07-25 05:18:53 +02:00
|
|
|
> /dev/shm/initrd.msg
|
|
|
|
ln -sf /dev/shm/initrd.msg /var/log/boot.msg
|
|
|
|
mkdir -p /var/run
|
|
|
|
/sbin/blogd $REDIRECT
|
|
|
|
fi
|
|
|
|
fi
|