Re: Question about what programs to use in /etc/rc*

2001-09-10 Thread John Baldwin
On 10-Sep-01 Brooks Davis wrote: > On Mon, Sep 10, 2001 at 09:35:24AM -0700, Ulf Zimmermann wrote: >> > Come to think of it, it might be as easy as: [**UNTESTED**] >> > >> > case ${ifconfig_args}; in >> >[Dd][Hh][Cc][Pp]*) >> >set $ifconfig_args >> >shift >> >

Re: Question about what programs to use in /etc/rc*

2001-09-10 Thread Brooks Davis
On Mon, Sep 10, 2001 at 09:35:24AM -0700, Ulf Zimmermann wrote: > > Come to think of it, it might be as easy as: [**UNTESTED**] > > > > case ${ifconfig_args}; in > > [Dd][Hh][Cc][Pp]*) > > set $ifconfig_args > > shift > > ifconfig_add_args="$*" > >

Re: Question about what programs to use in /etc/rc*

2001-09-10 Thread Peter Pentchev
On Mon, Sep 10, 2001 at 09:35:24AM -0700, Ulf Zimmermann wrote: > On Mon, Sep 10, 2001 at 06:19:54PM +0300, Peter Pentchev wrote: > > Come to think of it, it might be as easy as: [**UNTESTED**] > > > > case ${ifconfig_args}; in > > [Dd][Hh][Cc][Pp]*) > > set $ifconfig_args > >

Re: Question about what programs to use in /etc/rc*

2001-09-10 Thread Ulf Zimmermann
On Mon, Sep 10, 2001 at 06:19:54PM +0300, Peter Pentchev wrote: > On Mon, Sep 10, 2001 at 11:03:41AM -0400, Adrian Filipi-Martin wrote: > > On Mon, 10 Sep 2001, Peter Pentchev wrote: > > > > > On Sun, Sep 09, 2001 at 06:06:01PM -0400, Adrian Filipi-Martin wrote: > > > > On Sun, 9 Sep 2001, Ulf Zi

Re: Question about what programs to use in /etc/rc*

2001-09-10 Thread Peter Pentchev
On Mon, Sep 10, 2001 at 11:03:41AM -0400, Adrian Filipi-Martin wrote: > On Mon, 10 Sep 2001, Peter Pentchev wrote: > > > On Sun, Sep 09, 2001 at 06:06:01PM -0400, Adrian Filipi-Martin wrote: > > > On Sun, 9 Sep 2001, Ulf Zimmermann wrote: > > > > > > > These are some examples strings: > > > > > >

Re: Question about what programs to use in /etc/rc*

2001-09-10 Thread Adrian Filipi-Martin
On Mon, 10 Sep 2001, Peter Pentchev wrote: > On Sun, Sep 09, 2001 at 06:06:01PM -0400, Adrian Filipi-Martin wrote: > > On Sun, 9 Sep 2001, Ulf Zimmermann wrote: > > > > > These are some examples strings: > > > > > > "dhcp" > > > "dhcp media 10baseTX" > > > "media 10baseTX dhcp mediaopt half-duple

Re: Question about what programs to use in /etc/rc*

2001-09-10 Thread Peter Pentchev
On Sun, Sep 09, 2001 at 06:06:01PM -0400, Adrian Filipi-Martin wrote: > On Sun, 9 Sep 2001, Ulf Zimmermann wrote: > > > These are some examples strings: > > > > "dhcp" > > "dhcp media 10baseTX" > > "media 10baseTX dhcp mediaopt half-duplex" > > > > The following code will get me inside a if condi

Re: Question about what programs to use in /etc/rc*

2001-09-09 Thread Adrian Filipi-Martin
On Sun, 9 Sep 2001, Ulf Zimmermann wrote: > These are some examples strings: > > "dhcp" > "dhcp media 10baseTX" > "media 10baseTX dhcp mediaopt half-duplex" > > The following code will get me inside a if condition: > > if [ `expr "${ifconfig_args}" : '.*[Dd][Hh][Cc][Pp].*'` -ne 0 ]; then >

Re: Question about what programs to use in /etc/rc*

2001-09-09 Thread Paul Schenkeveld
On Sun, Sep 09, 2001 at 01:38:00PM -0700, Ulf Zimmermann wrote: > On Sun, Sep 09, 2001 at 01:11:52PM -0500, Alfred Perlstein wrote: > > * Ulf Zimmermann <[EMAIL PROTECTED]> [010909 04:47] wrote: > > > Hello everyone. > > > > > > I am looking at some PRs and I am trying to come up with a solution

Re: Question about what programs to use in /etc/rc*

2001-09-09 Thread Neil Blakey-Milner
On Sun 2001-09-09 (13:38), Ulf Zimmermann wrote: > On Sun, Sep 09, 2001 at 01:11:52PM -0500, Alfred Perlstein wrote: > > * Ulf Zimmermann <[EMAIL PROTECTED]> [010909 04:47] wrote: > > > Hello everyone. > > > > > > I am looking at some PRs and I am trying to come up with a solution to > > > submit

Re: Question about what programs to use in /etc/rc*

2001-09-09 Thread Ulf Zimmermann
On Sun, Sep 09, 2001 at 01:11:52PM -0500, Alfred Perlstein wrote: > * Ulf Zimmermann <[EMAIL PROTECTED]> [010909 04:47] wrote: > > Hello everyone. > > > > I am looking at some PRs and I am trying to come up with a solution to > > submit a patch. I know how to use expr to test as tring in sh insid

Re: Question about what programs to use in /etc/rc*

2001-09-09 Thread Alfred Perlstein
* Ulf Zimmermann <[EMAIL PROTECTED]> [010909 04:47] wrote: > Hello everyone. > > I am looking at some PRs and I am trying to come up with a solution to > submit a patch. I know how to use expr to test as tring in sh inside > of a /etc/rc* script, but what method would people recommend to remove >

Question about what programs to use in /etc/rc*

2001-09-09 Thread Ulf Zimmermann
Hello everyone. I am looking at some PRs and I am trying to come up with a solution to submit a patch. I know how to use expr to test as tring in sh inside of a /etc/rc* script, but what method would people recommend to remove part of the string after expr confirmed that something is part of it ?