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