network append instead of override
This commit is contained in:
parent
ad14ac673b
commit
0afed12025
|
@ -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 ==";
|
||||
|
|
Loading…
Reference in New Issue