Skip to main content
Topic: [Tracker] s6 support (Read 2050 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Re: [Tracker] s6 support

Reply #31
I kind of gave up on this and just added this oneshot service that mount-net depends on instead of dhcpcd:

while true; do
    routes=$(ip route show)
    if [[ -n "${routes}" ]]; then
        break
    fi
    sleep 1
done


No, I'm not proud :(

Re: [Tracker] s6 support

Reply #32
I kind of gave up on this and just added this oneshot service that mount-net depends on instead of dhcpcd:

while true; do
    routes=$(ip route show)
    if [[ -n "${routes}" ]]; then
        break
    fi
    sleep 1
done


No, I'm not proud :(

At least it works! I briefly tried some things like writing the wpa_supplicant -P option directly to /dev/fd/3, but it didn't seem to work (as in the service didn't even start) for some reason. Maybe I did something wrong though.