head	1.4;
access;
symbols;
locks; strict;
comment	@# @;


1.4
date	2005.07.07.03.25.18;	author tcheun1;	state Exp;
branches;
next	1.3;

1.3
date	2005.06.18.18.09.48;	author tcheun;	state Exp;
branches;
next	1.2;

1.2
date	2005.06.14.18.34.25;	author tcheun;	state Exp;
branches;
next	1.1;

1.1
date	2005.06.11.14.06.27;	author tcheun;	state Exp;
branches;
next	;


desc
@@


1.4
log
@remove readahead and readahead_early
@
text
@#!/bin/bash
# /etc/rc.d/booyp-services

. /etc/init.d/functions

update_bootsplash() {
	case "$1" in
		network)
			progressbar 60
			;;
		apmd)
			;;
		acpid)
			;;
		xfs)
			progressbar 80
			;;
		messagebus)
			;;
		haldaemon)
			progressbar 90
			;;
	esac	
	return 0
}

SERVICES="network apmd acpid xfs messagebus haldaemon"
CMDLINE="$(cat /proc/cmdline)"
RHGB=""
SPLASH_SILENT=""
strstr "$CMDLINE" "rhgb" && RHGB="yes"
strstr "$CMDLINE" "splash=silent" && SPLASH_SILENT="yes"

for subsys in $SERVICES ; do
        [ -f /var/lock/subsys/$subsys -o -f /var/lock/subsys/$subsys.init ] \
                && continue

        # If we're in confirmation mode, get user confirmation
        if [ -f /var/run/confirm ]; then
                confirm $subsys
                test $? = 1 && continue
        fi
        [ -n "$RHGB" ] && update_boot_stage "$subsys"
	[ -n "$SPLASH_SILENT" ] && update_bootsplash "$subsys"
	if egrep -q "(daemon |action |success |failure )" /etc/init.d/$i 2>/dev/null \
                || [ "$subsys" = "single" -o "$subsys" = "local" ]; then
		/etc/init.d/$subsys start
	else
        	action $"Starting $subsys: " /etc/init.d/$subsys start
	fi
done
rm -f /var/run/confirm
[ -n "$SPLASH_SILENT" ] && progressbar 100 && echo "verbose" > /proc/splash
@


1.3
log
@move progressbar
@
text
@d8 1
a8 1
		readahead_early)
a10 2
		network)
			;;
a17 2
		readahead)
			;;
d27 1
a27 1
SERVICES="readahead_early network apmd acpid xfs readahead messagebus haldaemon"
@


1.2
log
@remove pcmcia, add apmd, acpid
@
text
@a15 1
			progressbar 80
d18 1
@


1.1
log
@rc5.d
@
text
@d11 3
a13 1
		pcmcia)
d15 1
a15 1
		network)
d31 1
a31 1
SERVICES="readahead_early pcmcia network xfs readahead messagebus haldaemon"
@

