summaryrefslogtreecommitdiffstats
path: root/src/ifplugd.action
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-12-29 21:34:31 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2012-12-29 21:34:31 +0100
commitf3861be3d170e5c29f764285f6ad10ef317b0261 (patch)
tree4b7854d26079ee61bb539e496f27a8dde743ebcf /src/ifplugd.action
parent27c11787d7c58b02f12d7afd476ea66abfeecaaf (diff)
downloadnetctl-f3861be3d170e5c29f764285f6ad10ef317b0261.tar.gz
netctl-f3861be3d170e5c29f764285f6ad10ef317b0261.tar.xz
Make paths available for state files
Diffstat (limited to 'src/ifplugd.action')
-rwxr-xr-xsrc/ifplugd.action1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ifplugd.action b/src/ifplugd.action
index 3a28505..4acb45b 100755
--- a/src/ifplugd.action
+++ b/src/ifplugd.action
@@ -36,6 +36,7 @@ case "$2" in
fi
for profile in "${preferred_profiles[@]}" "${dhcp_profiles[@]}" "${static_profiles[@]}"; do
if "$SUBR_DIR/nework" start "$profile"; then
+ mkdir -p "$(dirname "$PROFILE_FILE")"
printf "%s" "$profile" > "$PROFILE_FILE"
exit 0
fi