mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-06 06:56:53 +08:00
Replace the current license disclaimer in files by
a SPDX-License-Identifier.
License files are organized under LICENSES directory.
Task-number: QTBUG-67283
Task-number: QTBUG-108364
Change-Id: If26e4d35c780db4a7982bb84872b251dad24716e
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit eecfb19548)
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
18 lines
615 B
Bash
Executable File
18 lines
615 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (C) 2018 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
set -ex
|
|
|
|
echo "Disable Network Time Protocol (NTP)"
|
|
|
|
if uname -a |grep -q "Ubuntu\|Debian" ; then
|
|
sudo timedatectl set-ntp false
|
|
elif cat /etc/os-release | grep "PRETTY_NAME" | grep -q "Leap 15"; then
|
|
(sudo systemctl stop chronyd && sudo systemctl disable chronyd)
|
|
elif cat /etc/os-release |grep "SUSE Linux Enterprise Server 15"; then
|
|
sudo timedatectl set-ntp false
|
|
else
|
|
sudo systemctl disable ntpd || sudo /sbin/chkconfig ntpd off
|
|
fi
|