Disable IPv6 Support

In some cases users have needed to disable IPv6 support to make features work; notably the AirPlay feature in XBMC which may not work on all iOS/OS X versions when IPv6 is active. This is an autostart.sh hack/workaround to turn off IPv6 support on the primary network interface:

First we need to discover the connman service name. This can be found by looking at the folder names under /var/lib/connman e.g. on my system I see:

ethernet_002436edfa68_cable

Next we create /storage/.config/autostart.sh:

nano /storage/.config/autostart.sh

Paste the following content into the script; notice that we use the connman service name found above in the command, the save with CTRL+O and exit with CTRL+X

( sleep 10 python /usr/lib/connman/set-ipv6-method ethernet_002436edfa68_cable off )&

Make the script executable:

chmod +x /storage/.config/autostart.sh

Now you can reboot and the script will disable ipv6 via connman 10 seconds after startup. Adjust the sleep value up/down if required to ensure the network is active when the command runs