#! /bin/sh #---------------------------------------------------------------------------- # /var/install/bin/init - run /etc/init.d/$package $command $parameter # # Creation: 15.09.2004 max # Last Update: $Id$ # # Copyright (c) 2003-2004 Frank Meyer # # usage: start package # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- # include eislib . /var/install/include/eislib packages="$1" param="$2" mecho mecho -info "$3..." for script in $packages do if [ -f /etc/init.d/$script ] then sh -c "/etc/init.d/$script $param" else mecho -error "No init-script for $script was found." fi done mecho anykey