summaryrefslogtreecommitdiff
path: root/net-vpn/vtun/files/vtun.rc
diff options
context:
space:
mode:
Diffstat (limited to 'net-vpn/vtun/files/vtun.rc')
-rw-r--r--net-vpn/vtun/files/vtun.rc3
1 files changed, 2 insertions, 1 deletions
diff --git a/net-vpn/vtun/files/vtun.rc b/net-vpn/vtun/files/vtun.rc
index 7ef322985043..9d081eeb4f06 100644
--- a/net-vpn/vtun/files/vtun.rc
+++ b/net-vpn/vtun/files/vtun.rc
@@ -7,7 +7,8 @@ depend() {
}
start() {
- IFS=$'\n'
+ IFS=$(printf '\n.'); # Set separator (IFS) to <newline><dot>
+ IFS=${IFS%.}; # Remove <dot> - The <dot> was because shells remove trailing newlines with $(..)
for line in `grep -v '^[[:space:]]*#' /etc/vtund-start.conf | grep -v '^[[:space:]]*$'`
do
echo $line |