OK I added to runscript.sh :
svc_homegrown() {
........ code ....
for x in ${args}
do
if [ "${x}" = "${arg}" ]
then
return $?
fi
done
....
eerror "ERROR: ...."
usage ${opts}
....
}
And it works if u list in your service script variable all possible arguments :
args="eth0 eth1 hdlc0 hdlc1"
but this is ugly solution to me .... Can anyone come with better one and integrate it
into Gentoo init scripts...
On Tue, 18 Feb 2003 15:07:40 -0500
raptor <[EMAIL PROTECTED]> wrote:
|hi,
|
|I want to pass parameters to service i.e. :
|
|
|/etc/init.d/servicename start eth1
|or
|/etc/init.d/servicename stop pvc0
|
|but I'm getting
|
| ERROR : wrong args ( eth1 / eth1 )
|
|I can disable the error message in runscript.sh, but does it have same side effect..
|
|raptor
|
|--
|[EMAIL PROTECTED] mailing list
|
|
--
[EMAIL PROTECTED] mailing list