From 07f7d82178e2d3ce12480bd56f0c6e6e0bd67dc0 Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Sat, 26 Jan 2013 00:36:36 +0100 Subject: Correctly wait for devices BindsTo= is not enough, we also need After=. --- src/netctl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/netctl b/src/netctl index 897f648..eec8501 100755 --- a/src/netctl +++ b/src/netctl @@ -91,6 +91,8 @@ unit_enable() { : ${BindsToInterfaces=$Interface} printf 'BindsTo=sys-subsystem-net-devices-%s.device\n' \ "${BindsToInterfaces[@]}" >> "$unit" + printf 'After=sys-subsystem-net-devices-%s.device\n' \ + "${BindsToInterfaces[@]}" >> "$unit" if [[ -n $After ]]; then printf 'After="netctl@%s.service"\n' "${After[@]//\"/\\\"}" >> "$unit" fi -- cgit v1.2.3-24-g4f1b