7fcd577f1e
- Remove usage of absolute paths - List all needed binaries in programs tag OBS-URL: https://build.opensuse.org/request/show/184081 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysvinit?expand=0&rev=192
36 lines
713 B
Bash
36 lines
713 B
Bash
#!/bin/bash
|
|
#%stage: boot
|
|
#%depends: udev clock
|
|
#%programs: blogd
|
|
#%programs: ln
|
|
#%programs: mkdir
|
|
#%programs: mount
|
|
#%programs: showconsole
|
|
#%if: -x /sbin/blogd
|
|
#%dontshow
|
|
#
|
|
##### blogd start
|
|
##
|
|
## This script starts blogd if this has not happened before.
|
|
##
|
|
## Command line parameters
|
|
## -----------------------
|
|
##
|
|
|
|
fboot=$(get_param fastboot)
|
|
quiet=$(get_param quiet)
|
|
|
|
if test -z "$fboot" -a -z "$quiet" -a -z "$REDIRECT" ; then
|
|
REDIRECT=$(showconsole 2>/dev/null)
|
|
if test -n "$REDIRECT" ; then
|
|
if test "$devpts" != "yes" ; then
|
|
mount -t devpts devpts /dev/pts
|
|
devpts=yes
|
|
fi
|
|
> /dev/shm/initrd.msg
|
|
ln -sf /dev/shm/initrd.msg /var/log/boot.msg
|
|
mkdir -p /var/run
|
|
blogd $REDIRECT
|
|
fi
|
|
fi
|