diff options
author | unammx <unammx> | 2001-03-08 07:55:50 +0000 |
---|---|---|
committer | unammx <unammx> | 2001-03-08 07:55:50 +0000 |
commit | a8ade0cd179dc725cb7e5346f7864a620dc11cba (patch) | |
tree | 71e28b78836c2d1767ca25a0d9384b3ca815a55f /time-conf.in | |
parent | b51e87cf1241f7f3254c87965a65814688d59ffc (diff) |
2001-03-08 Arturo Espinosa <arturo@ximian.com>
* replace.pl.in (xst_replace_from_table): big oops here. A
line of old code (51) wasn't deleted and this prevented any
changes to take place.
* network.pl.in (xst_network_ensure_loopback_interface): Ensure
the interface is activated if it already exists.
* parse.pl.in: line analyzers take care of reading the file, so
we can have routines that read more than one line, etc.
* time-conf.in: replace table, but this isn't working yet.
Diffstat (limited to 'time-conf.in')
-rwxr-xr-x | time-conf.in | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/time-conf.in b/time-conf.in index 60b1371..3c345b6 100755 --- a/time-conf.in +++ b/time-conf.in @@ -375,3 +375,41 @@ sub conf_get_parse_table return undef; } +sub conf_get_replace_table +{ + my %dist_map = + ( + "redhat-6.0" => "redhat-6.2", + "redhat-6.1" => "redhat-6.2", + "redhat-6.2" => "redhat-6.2", + "redhat-7.0" => "redhat-6.2" + ); + + my %dist_tables = + ( + "redhat-6.2" => + { + fn => + { + NTP_CONF => "/etc/ntp.conf", + STEP_TICKERS => "/etc/ntp/step-tickers", + ZONEINFO => "/usr/share/zoneinfo", + LOCAL_TIME => "/etc/localtime" + }, + table => + [ + [local_time, \&time_set_local_time], + [timezone, \&time_set_rh62_zone, [LOCAL_TIME, ZONEINFO]], + [sync, \&xst_parse_split_all_hash_comment, NTP_CONF, "server", "[ \t]+"], + [sync_active, \&xst_rh62_service_status, "xntpd"], + ] + } + ); + + my $dist = $dist_map {$xst_dist}; + return %{$dist_tables{$dist}} if $dist; + + #FIXME: warn about unsupported platform. + return undef; +} + |