mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-28 10:40:07 +00:00
tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
bbf1f102b6
commit
853e80640f
11
host/make.sh
11
host/make.sh
@ -144,11 +144,18 @@ if xreadYes "# Create bridges?" BRIDGES ; then
|
||||
# write both bootstrap and clean bridge configurations...
|
||||
if ! [ -z $BRIDGES_BOOTSTRAP ] ; then
|
||||
@ cp "$INTERFACES"{.new,.clean}
|
||||
# XXX disconnect bootstrap and connnect admin...
|
||||
# ...make this optional...
|
||||
#@ sed -i \
|
||||
# -e 's/'$ADMIN_PORT'/'$BOOTSTRAP_PORT'/' \
|
||||
# "$INTERFACES".clean
|
||||
@ sed -i \
|
||||
-e 's/'$ADMIN_PORT'/'$BOOTSTRAP_PORT'/' \
|
||||
-e 's/^.*gateway .*$//' \
|
||||
"$INTERFACES".clean
|
||||
echo "$BRIDGES" >> "$INTERFACES".clean
|
||||
BRIDGES="$BRIDGES_BOOTSTRAP"
|
||||
BRIDGES=$(\
|
||||
echo "$BRIDGES_BOOTSTRAP" \
|
||||
| sed -e 's/^.*gateway .*$//')
|
||||
fi
|
||||
|
||||
echo "$BRIDGES" >> "$INTERFACES".new
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user