summaryrefslogtreecommitdiffstats
path: root/src/netctl.in
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2014-05-27 12:05:12 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2014-06-17 12:59:41 +0200
commit105fba4593f02fccb85909ea3bc30ed8c426908d (patch)
treee3c6358a30dd68bd798f8b84571ab8a6f00526f5 /src/netctl.in
parent223942f36b1a071bcca39d1e0adb615f9440db1f (diff)
downloadnetctl-105fba4593f02fccb85909ea3bc30ed8c426908d.tar.gz
netctl-105fba4593f02fccb85909ea3bc30ed8c426908d.tar.xz
Escape hatch for the restrictive umask
Some things should not be run with the restrictive umask. This provides a means to do so: do_readable.
Diffstat (limited to 'src/netctl.in')
-rw-r--r--src/netctl.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/netctl.in b/src/netctl.in
index 90be39e..b66cf71 100644
--- a/src/netctl.in
+++ b/src/netctl.in
@@ -109,6 +109,7 @@ unit_enable() {
return 1
fi
load_profile "$1"
+ do_readable touch "$unit"
echo ".include @systemdsystemunitdir@/netctl@.service" > "$unit"
echo -e "\n[Unit]" >> "$unit"
[[ -n $Description ]] && echo "Description=$Description" >> "$unit"