Compare commits

...

3 Commits

Author SHA1 Message Date
bb1b2cba15 fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-08-06 01:57:40 +03:00
68bd2e6a76 fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-08-06 01:37:44 +03:00
9f6c660cf2 minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-03-31 15:17:09 +03:00
2 changed files with 12 additions and 3 deletions

View File

@ -82,17 +82,23 @@ if xreadYes "# Create bridges?" BRIDGES ; then
exit 1 exit 1
fi fi
@ cp /etc/network/interfaces{,.bak}
@ cp /etc/network/interfaces{,.new} @ cp /etc/network/interfaces{,.new}
BRIDGES="$(\ BRIDGES="$(\
cat bridges.tpl \ cat bridges.tpl \
| expandPCTTemplate WAN_PORT ADMIN_PORT)" | expandPCTTemplate \
LAN_BRIDGE WAN_BRIDGE ADMIN_BRIDGE \
WAN_PORT ADMIN_PORT \
HOST_ADMIN_IP GATE_ADMIN_IP)"
if [ -z "$DRY_RUN" ] ; then if [ -z "$DRY_RUN" ] ; then
# XXX add $BRIDGES to /etc/network/interfaces either before the # XXX add $BRIDGES to /etc/network/interfaces either before the
# source command or at the end... # source command or at the end...
# XXX # XXX
echo echo "$BRIDGES" >> /etc/network/interfaces.new
else
echo "$BRIDGES"
fi fi
if reviewApplyChanges /etc/network/interfaces ; then if reviewApplyChanges /etc/network/interfaces ; then

View File

@ -84,8 +84,11 @@ chown $USER:$USER $SERVER_CONFIG
chmod 600 $SERVER_CONFIG chmod 600 $SERVER_CONFIG
# Print profile QRCode... # Print profile QRCode...
PROFILE="ss://$PASSWD@$ENDPOINT:$ENDPOINT_PORT#shadow @ $ENDPOINT"
echo "# Profile:" echo "# Profile:"
qrencode -t UTF8 "ss://${PASSWD}@$ENDPOINT:$ENDPOINT_PORT#shadow @ $ENDPOINT" qrencode -t UTF8 "$PROFILE"
echo "$PROFILE"
echo
# /home/$USER/$SCRIPT # /home/$USER/$SCRIPT