YAHM icon indicating copy to clipboard operation
YAHM copied to clipboard

auto-init script assumes that eth0 is the only network interface

Open steilerDev opened this issue 8 years ago • 3 comments

Hi,

thanks for your hard work, I am currently trying to setup a CCU2 replacement and therefore try to install YAHM. Hardware is a Raspberry Pi 3 with Raspbian 9.

During the installation it killed the internet connection of my Pi and failed due to being unable to download stuff, because the script assumes that 'eth0' is the only internet interface. In my current setup this is 'wlan0'. You should add a check which one is right.

A question on the side, since you hard-coded that into the tool: How is it possible to switch interfaces? At this point this is a demo installation, but in production, I would like to connect my Pi via Ethernet.

Thanks,

Frank

Edit: Workaround for everyone having this problem: Download the init script and replace 93 with the appropriate interface (e.g. wlan0)

steilerDev avatar Dec 31 '17 16:12 steilerDev

Hi

Try to use manual install.

yahm-lxc install yahm-network -i wlan 0 create_bridge ....

See yahm-network -h for manual

Von meinem iPhone gesendet

Am 31.12.2017 um 17:56 schrieb Frank Steiler [email protected]:

Hi,

thanks for your hard work, I am currently trying to setup a CCU2 replacement and therefore try to install YAHM. Hardware is a Raspberry Pi 3 with Raspbian 9.

During the installation it killed the internet connection of my Pi and failed due to being unable to download stuff, because the script assumes that 'eth0' is the only internet interface. In my current setup this is 'wlan0'. You should add a check which one is right.

A question on the side, since you hard-coded that into the tool: How is it possible to switch interfaces? At this point this is a demo installation, but in production, I would like to connect my Pi via Ethernet.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

leonsio avatar Dec 31 '17 17:12 leonsio

The script also assumes that the interfaces are defined in /etc/network/interfaces and fails if it is under /interfaces.d, which is the default, in case of, for example, openHabian. The script exits with the message saying eth0 cannot be found although it exists. Once I checked the script and found that it is reading only /etc/network/interfaces, I moved all my interface definitions there as a workaround. It would be good if the script can handle interfaces under /interfaces.d as well.

twodrops avatar Jan 05 '18 10:01 twodrops

hi

i will try to install openHabian and make some modification to support this platform to

leonsio avatar Jan 10 '18 14:01 leonsio