Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/modem_config
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,8 @@ toggle_bridge() {
read choice
if [[ "$choice" =~ ^[Yy]$ ]]; then
set_xml_value "IPPassthroughEnable" "0" "$CONFIG_FILE"
set_xml_value "IPPassthroughHostMAC" "0" "$CONFIG_FILE"
set_xml_value "IPPassthroughMacAddr" "0" "$CONFIG_FILE"
set_xml_value "IPPassthroughHostName" "0" "$CONFIG_FILE"
echo -e "Bridge Mode "$(colorize "DISABLED" red)""
echo " "
echo -e "$(colorize "WARNING" yellow)"": Reboot the module to apply changes"
Expand All @@ -603,6 +604,8 @@ toggle_bridge() {
[[ "$mac_addr" =~ ^[Qq]$ ]] && return 0
if validate_netval "$mac_addr" mac; then
set_xml_value "IPPassthroughEnable" "1" "$CONFIG_FILE"
set_xml_value "IPPassthroughDeviceType" "ETH" "$CONFIG_FILE"
set_xml_value "IPPassthroughHostName" "0" "$CONFIG_FILE"
set_xml_value "IPPassthroughMacAddr" "$mac_addr" "$CONFIG_FILE"
echo -e "Bridge Mode "$(colorize "ENABLED" green)" with MAC: $(colorize "$mac_addr" white)"
echo " "
Expand Down