[BASH]: Issues with dhclient

view story

http://forums.fedoraforum.org – Heyas I'm writing to write my own bash-based network manager, it seems to be working theoreticly. Practicly it fails with dhclient, a down device (allthough i UP'd it), or with not assigned wpa conf file using wpa_supplicant, as stated, allthough i either killed or started the according functions. When i start the script, and a connection has already been made, it shows properly "all good". If i deactivate wlan0 to test by ifconfig wlan0 down, the script starts to claim dhclient still running in background, allthough the function kill_network should have killed all instances (HowTos)