diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2009-06-17 16:23:35 -0700 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2009-06-17 16:23:35 -0700 |
commit | b12adbc316c23b76ffff1ccdc6b6d889e9b99abc (patch) | |
tree | d219331d4cc896ca26cd9448d5dd27beb28c9f07 /scripts/rl-system.init | |
parent | a8b7b384291d13c4d12316c28bc727caae0541e9 (diff) | |
download | vyatta-cfg-system-b12adbc316c23b76ffff1ccdc6b6d889e9b99abc.tar.gz vyatta-cfg-system-b12adbc316c23b76ffff1ccdc6b6d889e9b99abc.zip |
Merged from Jenner.
Diffstat (limited to 'scripts/rl-system.init')
-rwxr-xr-x | scripts/rl-system.init | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/rl-system.init b/scripts/rl-system.init index 4c8c937f..e05e0564 100755 --- a/scripts/rl-system.init +++ b/scripts/rl-system.init @@ -154,12 +154,22 @@ set_ipv6_params () done } +setup_ntp_config_file () { + template_ntp_conf=/opt/vyatta/etc/ntp.conf + if [ -e $template_ntp_conf ]; then + cp -f $template_ntp_conf /etc/ntp.conf + else + log_failure_msg "NTP template config file doesn\'t exist" + fi +} + start () { udev_rescan create_ssh_host_keys || \ log_failure_msg "can't initialize ssh host keys" clear_or_override_config_files || \ log_failure_msg "can\'t reset config files" + setup_ntp_config_file add_new_serial_if || \ log_failure_msg "can\'t add serial interfaces" sysctl -q -p /opt/vyatta/etc/vyatta-sysctl.conf || |