[OPIE 0000041]: opie-netsetup creates shell syntax error in /etc/pcmcia/network.opts?

From: <opie-bugs.a.t.handhelds.org>
Date: Sun Jul 07 2002 - 04:37:20 EDT

The following bug has been CLOSED
=======================================================================
http://131.152.105.154/mantis/view_bug_page.php?f_id=0000041
=======================================================================
Reporter: honeypea
Handler: tille
=======================================================================
Project: OPIE
Bug ID: 0000041
Category: Taskbar/Launcher/Plugins
Reproducibility: always
Severity: block
Priority: normal
Status: closed
=======================================================================
Date Submitted: 06-20-02 13:37 CEST
Last Modified: 07-07-02 11:18 CEST
=======================================================================
Summary: opie-netsetup creates shell syntax error in
/etc/pcmcia/network.opts?
Description:
After running opie-netsetup to add a setting for my local wireless
lan, this created a replacement file /etc/pcmcia/network.opts which
included the lines:

case "$ADDRESS" in
my-network-name,*,*,*)
    INFO=
    BOOTP=
    DHCP=y
    start_fn ()
    stop_fn ()

These last two lines are incomplete shell syntax for defining
a function, which result in the following error in /var/log/messages:

Jun 20 11:07:13 hostcardmgr[2053]: + ./network: ./network.opts: line 15:
syntax error near unexpected token `stop_fn'
Jun 20 11:07:13 host cardmgr[2053]: + ./network: ./network.opts: line 15:
`
 stop_fn () '

and networking doesn't start. Not sure if this is anything specific
about my own setup, but haven't managed to trace it to anything
specific yet.
=======================================================================

-----------------------------------------------------------------------
 tille_admin - 06-20-02 13:44 CEST
-----------------------------------------------------------------------
should be:

start_fn () { return; }
stop_fn () { return; }

-----------------------------------------------------------------------
 ofels - 07-07-02 11:18 CEST
-----------------------------------------------------------------------
final close
Received on Sun Jul 07 09:18:15 2002

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:46:21 EDT