REM Start of script
'wired
'3-21-16

EnableZoneSupport(1)
REM Create text widget to display onscreen messaging
mode=CreateObject("roVideoMode")

rect1 = CreateObject("roRectangle", mode.GetSafeWidth()/4, mode.GetSafeHeight()/2, 500, 40)
rect2 = CreateObject("roRectangle", mode.GetSafeWidth()/4, mode.GetSafeHeight()/2+42, 500, 40)
text1 = CreateObject("roTextWidget", rect1, 1, 2, 0)
text2 = CreateObject("roTextWidget", rect2, 2, 2, 0)
print type(rect)
print type(text)
text1.Show()

text1.PushString("Disabling MDNS - Bonjour")
sleep(5000)



REM Adjust network settings here if necessary
REM

'avahi_server

registrySection = CreateObject("roRegistrySection", "networking")
if type(registrySection) = "roRegistrySection" then 
	registrySection.Write("avahi_server", "0")
	registrySection.flush()
endif
text1.Hide()

text2.PushString("Settings Updated. Remove Configuration Script from flash card.")
if ok=true then text2.Show()
sleep(30000)
REM End of script
