diff options
author | carlosg <carlosg> | 2005-02-24 20:43:04 +0000 |
---|---|---|
committer | carlosg <carlosg> | 2005-02-24 20:43:04 +0000 |
commit | 0dcaa30fdb5fb43a0afd261f4d08a2a61c731db6 (patch) | |
tree | 2a82c70806fc546188bbeb164d4d4d574e839219 /network-conf.in | |
parent | 3cf784bfd9fd9938161f3900febf4056496b7930 (diff) |
2005-02-24 Carlos Garnacho Parro <carlosg@gnome.org>
* network-conf.in: added "set_gateway" directive
Diffstat (limited to 'network-conf.in')
-rwxr-xr-x | network-conf.in | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/network-conf.in b/network-conf.in index da3309a..01c75e0 100755 --- a/network-conf.in +++ b/network-conf.in @@ -598,6 +598,14 @@ sub detect_essids &gst_xml_print_end ("essids"); } +sub set_gateway +{ + my ($tool, $iface, $address) = @_; + + &gst_network_route_set_default_gw ($iface, $address); + &gst_report_end (); +} + # --- Main --- # # get, set and filter are special cases that don't need more parameters than a ref to their function. @@ -618,7 +626,8 @@ $directives = { "enable_iface_with_config" => [ \&enable_iface_with_config, [], "Enable an interface with a given configuration" ], "detect_modem" => [ \&detect_modem, [], "Detects the modem device." ], - "detect_essids" => [ \&detect_essids, [ "interface" ], "Detects active wireless networks" ] + "detect_essids" => [ \&detect_essids, [ "interface" ], "Detects active wireless networks" ], + "set_gateway" => [ \&set_gateway, [ "interface", "address" ], "Sets the default gateway" ] }; $tool = &gst_init ($name, $version, $description, $directives, @ARGV); |