{"action":"created","issue":{"url":"https://api.github.com/repos/pi-hole/pi-hole/issues/455","repository_url":"https://api.github.com/repos/pi-hole/pi-hole","labels_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/455/labels{/name}","comments_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/455/comments","events_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/455/events","html_url":"https://github.com/pi-hole/pi-hole/issues/455","id":147251153,"number":455,"title":"Linux Container adapter selection","user":{"login":"ShoGinn","id":2660603,"avatar_url":"https://avatars.githubusercontent.com/u/2660603?v=3","gravatar_id":"","url":"https://api.github.com/users/ShoGinn","html_url":"https://github.com/ShoGinn","followers_url":"https://api.github.com/users/ShoGinn/followers","following_url":"https://api.github.com/users/ShoGinn/following{/other_user}","gists_url":"https://api.github.com/users/ShoGinn/gists{/gist_id}","starred_url":"https://api.github.com/users/ShoGinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShoGinn/subscriptions","organizations_url":"https://api.github.com/users/ShoGinn/orgs","repos_url":"https://api.github.com/users/ShoGinn/repos","events_url":"https://api.github.com/users/ShoGinn/events{/privacy}","received_events_url":"https://api.github.com/users/ShoGinn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pi-hole/pi-hole/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-10T18:32:20Z","updated_at":"2016-04-11T00:49:31Z","closed_at":null,"body":"##### Expected Behaviour:\r\nSelect ethernet adapters that dnsmasq works with\r\n\r\n##### Actual Behaviour:\r\nSetup a linux container that is running debian/ubuntu etc and run the automated installer, it will find the link as eth0@if13 etc.\r\n\r\nEnd up having to manually edit the dnsmasq file to remove the @if13 so that dnsmasq listens on the correct interface \r\n\r\n\r\n##### Steps to reproduce this issue:\r\n\r\n```\r\nroot@adblock:~# ip -o -f inet address show\r\n1: lo    inet 127.0.0.1/8 scope host lo\\       valid_lft forever preferred_lft forever\r\n12: eth0    inet 192.168.1.10/24 brd 192.168.1.255 scope global eth0\\       valid_lft forever preferred_lft forever\r\nroot@adblock:~# ip -o link\r\n1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT \\    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\r\n12: eth0@if13: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000\\    link/ether 62:36:36:31:30:31 bed ff:ff:ff:ff:ff:ff\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/pi-hole/pi-hole/issues/comments/208103787","html_url":"https://github.com/pi-hole/pi-hole/issues/455#issuecomment-208103787","issue_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/455","id":208103787,"user":{"login":"ShoGinn","id":2660603,"avatar_url":"https://avatars.githubusercontent.com/u/2660603?v=3","gravatar_id":"","url":"https://api.github.com/users/ShoGinn","html_url":"https://github.com/ShoGinn","followers_url":"https://api.github.com/users/ShoGinn/followers","following_url":"https://api.github.com/users/ShoGinn/following{/other_user}","gists_url":"https://api.github.com/users/ShoGinn/gists{/gist_id}","starred_url":"https://api.github.com/users/ShoGinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShoGinn/subscriptions","organizations_url":"https://api.github.com/users/ShoGinn/orgs","repos_url":"https://api.github.com/users/ShoGinn/repos","events_url":"https://api.github.com/users/ShoGinn/events{/privacy}","received_events_url":"https://api.github.com/users/ShoGinn/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T00:49:31Z","updated_at":"2016-04-11T00:49:31Z","body":"I might not be the best at bash scripts, but:\r\n\r\nChange:\r\n''\r\navailableInterfaces=$(ip -o link | awk '{print $2}' | grep -v \"lo\" | cut -d':' -f1)\r\n''\r\n\r\nto \r\n''\r\navailableInterfaces=$(ip -o link | awk '{print $2}' | grep -v \"lo\" | cut -d':' -f1 | cut -d'@' -f1)\r\n'' \r\n\r\nAnd that removes the problem."}}