leonsio / YAHM

Yet Another Homematic Management - Skripte zur Einrichtung der Homematic CCU Oberfläche in einem LXC Container unter Debian Jessie auf ARM CPU (z.B.: Raspberry Pi & Co)
Creative Commons Zero v1.0 Universal
114 stars 21 forks source link

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

Open steilerDev opened 6 years ago

steilerDev commented 6 years ago

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)

leonsio commented 6 years ago

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 notifications@github.com:

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.

twodrops commented 6 years ago

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.

leonsio commented 6 years ago

hi

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