summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2013-01-01 20:34:04 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2013-01-01 20:34:04 +0100
commitfafa6603f87d68fd6b30dcfd4600cb1006e02a9e (patch)
treeb8e3394fc2073665c3a9da3af0a2603b5b50ea4f
parent7567349bbe35366ad84da66a3ac08be084e25530 (diff)
downloadnetctl-fafa6603f87d68fd6b30dcfd4600cb1006e02a9e.tar.gz
netctl-fafa6603f87d68fd6b30dcfd4600cb1006e02a9e.tar.xz
Fix netctl-ifplugd
As ifplugd brings the interface up, we need to use ForceConnect.
-rwxr-xr-xsrc/ifplugd.action2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ifplugd.action b/src/ifplugd.action
index d4e8ae4..762b504 100755
--- a/src/ifplugd.action
+++ b/src/ifplugd.action
@@ -35,7 +35,7 @@ case "$2" in
echo "AutoWired flag for '$1' set in more than one profile (${preferred_profiles[*]})"
fi
for profile in "${preferred_profiles[@]}" "${dhcp_profiles[@]}" "${static_profiles[@]}"; do
- if "$SUBR_DIR/network" start "$profile"; then
+ if ForceConnect=yes "$SUBR_DIR/network" start "$profile"; then
mkdir -p "$(dirname "$PROFILE_FILE")"
printf "%s" "$profile" > "$PROFILE_FILE"
exit 0