Home | History | Annotate | Download | only in cros

Lines Matching refs:conf

25 def avahi_config(options, src_file='/etc/avahi/avahi-daemon.conf', host=None):
26 """Creates a temporary avahi-daemon.conf file with the specified changes.
43 conf = ConfigParser.SafeConfigParser()
44 conf.readfp(io.BytesIO(existing_config))
47 if not conf.has_section(section):
48 conf.add_section(section)
50 conf.remove_option(section, option)
52 conf.set(section, option, value)
54 tmp_conf_file = run('mktemp -t avahi-conf.XXXX').stdout.strip()
56 for section in conf.sections():
58 for option in conf.options(section):
59 lines.append('%s=%s' % (option, conf.get(section, option)))
129 conf = avahi_config(opts, host=host)
130 avahi_start(config_file=conf, host=host)
131 run('rm %s' % conf)