create_ap

create a nat-ed wifi ap
git clone git://git.2f30.org/create_ap
Log | Files | Refs | README | LICENSE

commit 9ab97af45184602d4f386f4021d21ab15021a8e4
parent 89a457d5971ddda99c145b9374483ea67e4a0cf9
Author: oblique <psyberbits@gmail.com>
Date:   Sun, 17 Aug 2014 01:10:50 +0300

networkmanager_is_running: we don't need to redirect stderr in /dev/null

Diffstat:
Mcreate_ap | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/create_ap b/create_ap @@ -107,9 +107,9 @@ networkmanager_is_running() { NM_VER=$(nmcli -v | grep -m1 -oE '[0-9]+(\.[0-9]+)*\.[0-9]+') version_cmp $NM_VER 0.9.10 if [[ $? -eq 1 ]]; then - NMCLI_OUT=$(nmcli -t -f RUNNING nm 2> /dev/null) + NMCLI_OUT=$(nmcli -t -f RUNNING nm) else - NMCLI_OUT=$(nmcli -t -f RUNNING g 2> /dev/null) + NMCLI_OUT=$(nmcli -t -f RUNNING g) fi [[ "$NMCLI_OUT" == "running" ]] }