network append instead of override

This commit is contained in:
xdrm-brackets 2017-01-20 10:56:21 +01:00
parent ad14ac673b
commit 0afed12025
1 changed files with 3 additions and 3 deletions

View File

@ -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 ==";