You are not logged in.

#1 2008-01-23 16:27:25

anadyr
Member
Registered: 2005-02-10
Posts: 225

probably simple question on a daemon [SOLVED]

Hi, I have a RT2500 card, and I start my wpa wireless network from a custom script with iwpriv commands:

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

case "$1" in
        start)
         stat_busy "Starting Wireless Interface"
ifconfig ra0 up
iwconfig ra0 essid ulysses
iwconfig ra0 mode Managed
iwpriv ra0 set AuthMode=WPAPSK
iwpriv ra0 set EncrypType=AES
#wpa_passphrase <ssid> [passphrase]
iwpriv ra0 set WPAPSK=somecodedstuff
iwpriv ra0 set TxRate=0
dhcpcd ra0
        ;;
        stop)
         stat_busy "Stopping Wireless Interface"
        /sbin/ifconfig ra0 down
        ;;
esac

I have this script in /etc/rc.d as a daemon and it starts at boot. Works very nice. But there is one glitch which sort of annoy me a little. When I start it, this is shown in the terminal:

:: Starting Wireless Interface                                                    [BUSY]

But the BUSY does not change into DONE, even though wireless network loads properly. How do I fix this small problem?

Last edited by anadyr (2008-01-23 19:27:04)

Offline

#2 2008-01-23 16:39:23

nogoma
Member
From: Cranston, RI
Registered: 2006-03-01
Posts: 217

Re: probably simple question on a daemon [SOLVED]

Don't you need a

stat_done

in there?


-nogoma
---
Code Happy, Code Ruby!
http://www.last.fm/user/nogoma/

Offline

#3 2008-01-23 19:26:45

anadyr
Member
Registered: 2005-02-10
Posts: 225

Re: probably simple question on a daemon [SOLVED]

Oh yeah, I missed that when I looked at the other daemon. Thanks!

Offline

Board footer

Powered by FluxBB