From a20bfbf919b5ccdd60cce008dd9c0bbe23ba1606 Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 31 Jul 2011 04:28:03 +0200 Subject: arping_users.py: replaced verbose with quiet flag --- census/arping_users.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'census') diff --git a/census/arping_users.py b/census/arping_users.py index 008fe337..ec3557d4 100755 --- a/census/arping_users.py +++ b/census/arping_users.py @@ -7,10 +7,10 @@ DEV='eth0' MAC_NAMES='mac_names.lst' data = [] ret = {} -verb = False +quiet=False -if len(sys.argv) > 1 and sys.argv[1] == 'v': - verb = True +if len(sys.argv) > 1 and sys.argv[1] == 'q': + quiet=True def get_own_addr(): data = subprocess.Popen(['/sbin/ifconfig',DEV], stdout=subprocess.PIPE).communicate()[0].replace('\n','') @@ -46,7 +46,7 @@ except Exception as e: for p in ret: - if verb: + if not quiet: print p[0] + " => " + p[1] if p[1] in names: print names[p[1]]+ " is online" -- cgit v1.2.3