> Oh. You should change this... for example, I don't run network manager on
> my
> desktop. I only run it places where I have wifi. Something like:
>
> has_nm_running() {
>   IS_RUNNING=0
>   if [ -x '/usr/bin/nmcli' ] ; then
>     NM_STATUS=$(nmcli -t -f RUNNING nm)
>     if [ "$NM_STATUS" = "running" ]; then
>       IS_RUNNING=1
>     fi
>   fi
> }
>
> if [ "$ACTION" = "add" ]; then
>   USE_NM=$(has_nm_running)
>   if [ "$USE_NM" -eq 1 ]; then
>     ..

Reworked in v2.

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
concordance-devel mailing list
concordance-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/concordance-devel

Reply via email to