#!/bin/sh
#
# $Id: service_common,v 1.1.1.1 2005/05/11 09:03:12 gleissner Exp $
#
#
# Project     :  SCPM (System Configuration Profile Management)
# Module      :  SCPM Utilities
# File        :  service_common
# Description :  Common functions for service scripts
# Author      :  Joachim Gleissner <jg@suse.de>
#
# Copyright 2001 SuSE GmbH
#
# Released under the terms of the GNU General Public License
# (see file COPYRIGHT in project root directory).
#

# set init dir
INITD=$( if [ -f /etc/init.d/boot ]; then echo /etc/init.d ;
         elif [ -f /sbin/init.d/boot ]; then echo /sbin/init.d ; fi)

test -z "$INITD" &&  {
    echo "$0: error: could not determine init directory" >&2 ;
    exit 1 ; }

# files in $INITD that are no real service files
EXCLUDE_FILES="$INITD/README $INITD/boot $INITD/boot.* $INITD/halt $INITD/halt.local \
$INITD/reboot $INITD/single $INITD/serial $INITD/skeleton $INITD/powerfail \
$INITD/random $INITD/rc $INITD/fbset $INITD/*.rpmsave $INITD/*.new $INITD/*.swp"
