You are not logged in.
hello!
i want to write a bash script for my wireless lan. for this i need the information, if the network daemon has connected successfully or failed.
but there is a big problem: starting network success' every time, whether there was an error or not:
$ /etc/rc.d/network start
:: Starting network profile: 00wlan_home [BUSY]
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; No such device.
[FAIL]
:: Starting Network [DONE]
$ ls /var/run/daemons/
... network ...can someone help me please? how can i realize that "::Starting Network ..." also fails and the script returns an exit status 1?
thanks for your help, maybe we can improve the script. but i'm not a geek in bash! ![]()
mfg iggy
sorry for my bad english ![]()
Offline
hello!
i want to write a bash script for my wireless lan. for this i need the information, if the network daemon has connected successfully or failed.
but there is a big problem: starting network success' every time, whether there was an error or not:$ /etc/rc.d/network start :: Starting network profile: 00wlan_home [BUSY] Error for wireless request "Set Mode" (8B06) : SET failed on device wlan0 ; No such device. [FAIL] :: Starting Network [DONE] $ ls /var/run/daemons/ ... network ...can someone help me please? how can i realize that "::Starting Network ..." also fails and the script returns an exit status 1?
thanks for your help, maybe we can improve the script. but i'm not a geek in bash!
mfg iggy
try using netcfg to start the wireless profile, that should keep you happy until the new network scripts are unleashed... which won't have this problem.
James
Offline
try using netcfg to start the wireless profile, that should keep you happy until the new network scripts are unleashed... which won't have this problem.
James
When will it be so far? I am curious already! ![]()
i have done it. wrote my own script using netcfg. thanks for your hint!
mfg iggy
Last edited by iggy (2007-04-19 20:19:19)
sorry for my bad english ![]()
Offline