diff --git a/README.md b/README.md index 06385fa..ae62823 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ # realtime-setup +# SPDX-License-Identifier: GPL-2.0-or-later The realtime-setup package diff --git a/kernel-is-rt b/kernel-is-rt index 6e8e8d4..2ec2bff 100755 --- a/kernel-is-rt +++ b/kernel-is-rt @@ -1,2 +1,3 @@ #!/usr/bin/bash -e +# SPDX-License-Identifier: GPL-2.0-or-later [ -e /sys/kernel/realtime ] diff --git a/kernel-rt-protect.conf b/kernel-rt-protect.conf index 8e4d76c..8a16088 100644 --- a/kernel-rt-protect.conf +++ b/kernel-rt-protect.conf @@ -1,2 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0-or-later [main] enabled=1 diff --git a/kernel-rt-protect.py b/kernel-rt-protect.py index a7ecadf..0a594ba 100644 --- a/kernel-rt-protect.py +++ b/kernel-rt-protect.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-or-later from yum.plugins import TYPE_INTERACTIVE requires_api_version = '2.5' plugin_type = (TYPE_INTERACTIVE,) diff --git a/realtime-entsk.service b/realtime-entsk.service index 006402d..4372d2b 100644 --- a/realtime-entsk.service +++ b/realtime-entsk.service @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-or-later [Unit] Description=RT Enable Netsocket Timestap Static Key daemon After=syslog.target network.target diff --git a/realtime-setup-kdump b/realtime-setup-kdump index 2219153..923c3d3 100644 --- a/realtime-setup-kdump +++ b/realtime-setup-kdump @@ -6,6 +6,8 @@ # optional argument --grub causes kdump kernel cmdline to # be added to rt kernel grub entries # +# SPDX-License-Identifier: GPL-2.0-or-later +# me=$(basename $0) rpmcmd='rpm -q --last' diff --git a/realtime-setup.service b/realtime-setup.service index bea403e..aed8645 100644 --- a/realtime-setup.service +++ b/realtime-setup.service @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + [Unit] Description=RHEL-RT environment details setup After=syslog.target @@ -9,4 +11,3 @@ ExecStart=/usr/bin/rt-setup [Install] WantedBy=multi-user.target - diff --git a/realtime-setup.sysconfig b/realtime-setup.sysconfig index 41e3842..7894648 100644 --- a/realtime-setup.sysconfig +++ b/realtime-setup.sysconfig @@ -1,4 +1,6 @@ # # Decide whether to turn off SLUB cpu_partial support # +# SPDX-License-Identifier: GPL-2.0-or-later + SLUB_CPU_PARTIAL="off" diff --git a/realtime-setup.systemd b/realtime-setup.systemd index 5fcf750..b6749ae 100755 --- a/realtime-setup.systemd +++ b/realtime-setup.systemd @@ -1,4 +1,5 @@ #!/usr/bin/bash +# SPDX-License-Identifier: GPL-2.0-or-later on_rt () { if [ -f /sys/kernel/realtime ]; then diff --git a/realtime-setup.sysvinit b/realtime-setup.sysvinit index 45eb584..89d8def 100644 --- a/realtime-setup.sysvinit +++ b/realtime-setup.sysvinit @@ -2,6 +2,7 @@ # # rt-setup - script to handle setup for running an RT kernel # +# SPDX-License-Identifier: GPL-2.0-or-later # chkconfig: 2345 00 99 # description: This script is used to setup services for use with a \ # realtime Linux kernel \ diff --git a/realtime.conf b/realtime.conf index 237f3ed..82ec0b0 100644 --- a/realtime.conf +++ b/realtime.conf @@ -1,5 +1,6 @@ # This file specifies reasonable default limits for users # who should be able to run realtime processes. +# SPDX-License-Identifier: GPL-2.0-or-later # # Such users must be added to group 'realtime' to be # affected by these limits. diff --git a/rhel-rt.rules b/rhel-rt.rules index 5084f69..23535ea 100644 --- a/rhel-rt.rules +++ b/rhel-rt.rules @@ -1,5 +1,7 @@ # udev rules specific to RHEL-RT Realtime kernel - +# +# SPDX-License-Identifier: GPL-2.0-or-later +# # insure /dev/rtc points to /dev/rtc0 # we use PROGRAM rather than SYMLINK because there is # a (good) possibility that a /dev/rtc device file diff --git a/rtapp-example.sh b/rtapp-example.sh index 0cca355..474dce7 100644 --- a/rtapp-example.sh +++ b/rtapp-example.sh @@ -1,5 +1,7 @@ #!/usr/bin/bash - +# +# SPDX-License-Identifier: GPL-2.0-or-later +# # the following is the chkconfig init header # # rtapp-example: processor frequency scaling support diff --git a/slub_cpu_partial_off b/slub_cpu_partial_off index ddf857f..a602034 100755 --- a/slub_cpu_partial_off +++ b/slub_cpu_partial_off @@ -3,6 +3,8 @@ # shell script to turn SLUB cpu_partial logic off # for improved determinism # +# SPDX-License-Identifier: GPL-2.0-or-later +# if [ "$(id -u)" != "0" ]; then echo "Must be root to run $(basename $0)" diff --git a/what-do.txt b/what-do.txt index f368b71..ed598cb 100644 --- a/what-do.txt +++ b/what-do.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + Looking at the specfile, here's what realtime-setup gets you: 1. Create a realtime group: