Hello,
I try to have a pi zero W connected by USB to go and eth.
I've been succesfull by following this https://forums.raspberrypi.com/viewtopic.php?t=238746 tutorial and some other forum threads, which all follow this one.
What I fail to attempt is the automatic connection when rebooting or hot plugging.
I did the attempt of going with the hotplug.rules system, which is described in the tuto, but it doesn't do what it should.
/etc//hotplug2.rules (ln to /jffs/hotplug2.rules)
It doesn't seem to trigger the script.
Does anyone have an idea,
1. how to check what's happening
2. what to change
3. another way to go?
Target is, if the pi is plugged to the USB 2.0, add the usb0 network device by executing
Thank you
Dillinger
Router: Asus RT-AC68U
Firmware: 386.7_2
Installed custom scripts with JFFS and a swap on separate USB Stick:
AMTM with
Diversion v4.3.2
Skynet v7.2.8
YazFi v4.4.2
scribe v2.4.3
x3mRouting v2.4.5
unbound Manager v3.22
nsrum v30.4.0
connmon v3.0.2
ntpMerlin v3.4.5
scMerlin v2.4.0
spdMerlin v4.4.4
uiDivStats v3.0.2
uiScribe v1.4.5
YazDHCP v1.0.4
vnStat v2.0.4
edit: Added router details
I try to have a pi zero W connected by USB to go and eth.
I've been succesfull by following this https://forums.raspberrypi.com/viewtopic.php?t=238746 tutorial and some other forum threads, which all follow this one.
What I fail to attempt is the automatic connection when rebooting or hot plugging.
I did the attempt of going with the hotplug.rules system, which is described in the tuto, but it doesn't do what it should.
/etc//hotplug2.rules (ln to /jffs/hotplug2.rules)
Code:
[...]
SUBSYSTEM == net, ACTION is set {
exec /sbin/hotplug %SUBSYSTEM% ;
exec /jffs/scripts/script_hotplug.sh ;
}
[...]
It doesn't seem to trigger the script.
Does anyone have an idea,
1. how to check what's happening
2. what to change
3. another way to go?
Target is, if the pi is plugged to the USB 2.0, add the usb0 network device by executing
Code:
ifconfig usb0 up
brctl addif br0 usb0
Thank you
Dillinger
Router: Asus RT-AC68U
Firmware: 386.7_2
Installed custom scripts with JFFS and a swap on separate USB Stick:
AMTM with
Diversion v4.3.2
Skynet v7.2.8
YazFi v4.4.2
scribe v2.4.3
x3mRouting v2.4.5
unbound Manager v3.22
nsrum v30.4.0
connmon v3.0.2
ntpMerlin v3.4.5
scMerlin v2.4.0
spdMerlin v4.4.4
uiDivStats v3.0.2
uiScribe v1.4.5
YazDHCP v1.0.4
vnStat v2.0.4
edit: Added router details
Last edited: