+ if [[ $(\ifconfig -s | grep -v ^"(Iface|lo) ") ]]; then
+ echo "There is already interface(s) up." >&2
+ return 1
+ fi
+
+ if [[ $(\ps -C dhclient | tail -n +2) ]]; then
+ echo "There is already a dhcp client running." >&2
+ return 1
+ fi
+
+ if [[ $(\ps -C wpa_supplicant | tail -n +2) ]]; then
+ echo "There is already a wpa_supplicant running." >&2
+ return 1
+ fi
+