]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/initscripts/system/ntp
Ship NTP changes
[ipfire-2.x.git] / src / initscripts / system / ntp
index d411ba18d6f66108df695e1a0c2f192db7255c09..6c8174d25d9dd1a5cbe785bbab6c2887a7040503 100644 (file)
@@ -1,5 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/ntp
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -34,6 +52,8 @@ case "$1" in
                        fi
                fi
 
+               echo -e "server ${NTP_ADDR_1} prefer\nserver    ${NTP_ADDR_2}" > /etc/ntp/ntpInclude.conf
+
                boot_mesg "Starting ntpd..."
                loadproc /usr/bin/ntpd -Ap /var/run/ntpd.pid
                ;;
@@ -58,5 +78,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/ntp