From 0afed12025f75b246471718a24e9d333a61c18f2 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 20 Jan 2017 10:56:21 +0100 Subject: [PATCH] network append instead of override --- network/config-interfaces | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network/config-interfaces b/network/config-interfaces index 7f0d69b..2f34c88 100755 --- a/network/config-interfaces +++ b/network/config-interfaces @@ -7,7 +7,7 @@ fi; # variables path=`realpath $1`; -CONFIG=""; +CONFIG="\n\n"; # [2] create current config backup (safe) cp $path $path.save \ @@ -22,7 +22,7 @@ echo "\n== REQUIRED =="; test -z "$iface_name" && echo "empty interface name !\naborting" && exit; - CONFIG="auto $iface_name"; + CONFIG="$CONFIG\nauto $iface_name"; @@ -97,5 +97,5 @@ echo "\n== OPTIONAL =="; -echo $CONFIG > $path; +echo $CONFIG >> $path; echo "\n== WRITTEN TO FILE ==";