blob: 69a9cb2c96ad252e206951c46aab6f6d2a4ff45b [file] [log] [blame]
#!/usr/bin/python
import dbus, flimflam, sys
if (len(sys.argv) < 2):
print "Usage: %s [true|false]" % (sys.argv[0])
sys.exit(1)
do_arp_gw = sys.argv[1].lower()
if do_arp_gw not in ('true', 'false'):
print "Argument must be 'true' or 'false'"
sys.exit(1)
flim = flimflam.FlimFlam(dbus.SystemBus())
flim.SetArpGateway(do_arp_gw == 'true')