# HG changeset patch # User Florian Pose # Date 1151336123 0 # Node ID fe8777a69d4aefa3958786f6169e2d8e200058e7 # Parent 4bbe090553f761ccb55ef33935e5e94f31a6611c MERGE trunk -r 448:449 -> branches/stable-1.0 (bridge gateway) diff -r 4bbe090553f7 -r fe8777a69d4a script/ethercat.sh --- a/script/ethercat.sh Mon Jun 26 15:04:06 2006 +0000 +++ b/script/ethercat.sh Mon Jun 26 15:35:23 2006 +0000 @@ -141,6 +141,23 @@ rc_status -v rc_exit fi + + # install new default gateway + if [ -n "$EOE_GATEWAY" ]; then + while /sbin/route -n | grep -E -q "^0.0.0.0"; do + if ! /sbin/route del default; then + echo "Failed to remove default route!" 1>&2 + /bin/false + rc_status -v + rc_exit + fi + done + if ! /sbin/route add default gw $EOE_GATEWAY; then + /bin/false + rc_status -v + rc_exit + fi + fi fi rc_status -v diff -r 4bbe090553f7 -r fe8777a69d4a script/sysconfig --- a/script/sysconfig Mon Jun 26 15:04:06 2006 +0000 +++ b/script/sysconfig Mon Jun 26 15:35:23 2006 +0000 @@ -39,6 +39,13 @@ #EOE_IP_NETMASK=255.255.255.0 # +# Renew default gateway after bridge installation. +# Set this to the new default gateway, if the default route shall +# be renewed after the bridge has been installed. +# +#EOE_GATEWAY=192.168.X.X + +# # List of extra interfaces to include in the EoE bridge. # Set this to interconnect the EoE bridge with other local interfaces. # If EOE_BRIDGE is empty or undefined, setting this variable has no effect.