| 1 |
#! /bin/sh
|
| 2 |
|
| 3 |
# $Id$
|
| 4 |
#*********************************************************************
|
| 5 |
#
|
| 6 |
# start-stop-daemon -- a version which never starts daemons
|
| 7 |
#
|
| 8 |
# This script is part of FAI (Fully Automatic Installation)
|
| 9 |
# (c) 2000-2006 by Thomas Lange, lange@informatik.uni-koeln.de
|
| 10 |
# Universitaet zu Koeln
|
| 11 |
#
|
| 12 |
#*********************************************************************
|
| 13 |
# This program is free software; you can redistribute it and/or modify
|
| 14 |
# it under the terms of the GNU General Public License as published by
|
| 15 |
# the Free Software Foundation; either version 2 of the License, or
|
| 16 |
# (at your option) any later version.
|
| 17 |
#
|
| 18 |
# This program is distributed in the hope that it will be useful, but
|
| 19 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 20 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
| 21 |
# General Public License for more details.
|
| 22 |
#
|
| 23 |
# A copy of the GNU General Public License is available as
|
| 24 |
# `/usr/share/common-licences/GPL' in the Debian GNU/Linux distribution
|
| 25 |
# or on the World Wide Web at http://www.gnu.org/copyleft/gpl.html. You
|
| 26 |
# can also obtain it by writing to the Free Software Foundation, Inc.,
|
| 27 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
| 28 |
#*********************************************************************
|
| 29 |
|
| 30 |
while [ $# -gt 0 ]; do
|
| 31 |
case $1 in
|
| 32 |
-x|--exec) shift; prog="for $1" ;;
|
| 33 |
-o|--oknodo) oknodo=1 ;;
|
| 34 |
-S|--start) start=1 ;;
|
| 35 |
-K|--stop) stop=1 ;;
|
| 36 |
esac
|
| 37 |
shift
|
| 38 |
done
|
| 39 |
|
| 40 |
case $prog in
|
| 41 |
*udevd) /sbin/start-stop-daemon.distrib --start --quiet --exec /sbin/udevd -- --daemon
|
| 42 |
;;
|
| 43 |
*) echo ""
|
| 44 |
echo "Warning: Dummy start-stop-daemon called $prog. Doing nothing."
|
| 45 |
;;
|
| 46 |
esac
|
| 47 |
|
| 48 |
[ -n "$stop" -a -z "$oknodo" ] && exit 1
|
| 49 |
|
| 50 |
exit 0
|