diff --git a/init/control-printer-icon.sh b/init/control-printer-icon.sh index 53aa11c..54b7930 100755 --- a/init/control-printer-icon.sh +++ b/init/control-printer-icon.sh @@ -1,6 +1,7 @@ #!/bin/bash # Source Qubes library. +# shellcheck source=init/functions . /usr/lib/qubes/init/functions if ! is_fully_persistent && test -f /etc/xdg/autostart/print-applet.desktop ; then diff --git a/misc/block-snapshot b/misc/block-snapshot index 8c11dc7..2f2411d 100755 --- a/misc/block-snapshot +++ b/misc/block-snapshot @@ -6,9 +6,11 @@ dir=$(dirname "$0") if [ "$1" = "prepare" ] || [ "$1" = "cleanup" ]; then + # shellcheck disable=SC1090,SC1091 . "$dir/xen-hotplug-common.sh" command=$1 else + # shellcheck disable=SC1090,SC1091 . "$dir/block-common.sh" fi diff --git a/misc/qubes-trigger-sync-appmenus.sh b/misc/qubes-trigger-sync-appmenus.sh index 5d01986..d6ba8b1 100755 --- a/misc/qubes-trigger-sync-appmenus.sh +++ b/misc/qubes-trigger-sync-appmenus.sh @@ -1,6 +1,7 @@ #!/bin/bash # Source Qubes library. +# shellcheck source=init/functions . /usr/lib/qubes/init/functions if is_updateable ; then diff --git a/qubes-rpc/prepare-suspend b/qubes-rpc/prepare-suspend index 55331a1..98ae525 100755 --- a/qubes-rpc/prepare-suspend +++ b/qubes-rpc/prepare-suspend @@ -1,6 +1,7 @@ #!/bin/bash # Source Qubes library. +# shellcheck source=init/functions . /usr/lib/qubes/init/functions action=$1 diff --git a/qubes-rpc/qubes-open b/qubes-rpc/qubes-open index 4722fe6..7556fcc 100644 --- a/qubes-rpc/qubes-open +++ b/qubes-rpc/qubes-open @@ -1,6 +1,7 @@ #!/bin/sh if [ -r /etc/profile.d/qubes-session.sh ]; then + # shellcheck disable=SC1091 . /etc/profile.d/qubes-session.sh fi diff --git a/vm-init.d/qubes-core b/vm-init.d/qubes-core index 4797619..92114e3 100755 --- a/vm-init.d/qubes-core +++ b/vm-init.d/qubes-core @@ -4,9 +4,11 @@ # description: Executes supplementary Qubes core scripts at VM boot # # Source function library. +# shellcheck disable=SC1091 . /etc/rc.d/init.d/functions # Source Qubes library. +# shellcheck source=init/functions . /usr/lib/qubes/init/functions start() diff --git a/vm-init.d/qubes-core-early b/vm-init.d/qubes-core-early index 7c1d22d..6ae5d49 100755 --- a/vm-init.d/qubes-core-early +++ b/vm-init.d/qubes-core-early @@ -4,9 +4,11 @@ # description: Executes early necessary Qubes core scripts at VM boot # # Source function library. +# shellcheck disable=SC1091 . /etc/rc.d/init.d/functions # Source Qubes library. +# shellcheck source=init/functions . /usr/lib/qubes/init/functions start() diff --git a/vm-init.d/qubes-core-netvm b/vm-init.d/qubes-core-netvm index c4ca815..ad97a2a 100755 --- a/vm-init.d/qubes-core-netvm +++ b/vm-init.d/qubes-core-netvm @@ -4,9 +4,11 @@ # description: Executes Qubes core scripts at NetVM boot # # Source function library. +# shellcheck disable=SC1091 . /etc/rc.d/init.d/functions # Source Qubes library. +# shellcheck source=init/functions . /usr/lib/qubes/init/functions start() diff --git a/vm-init.d/qubes-firewall b/vm-init.d/qubes-firewall index 795f482..483debc 100755 --- a/vm-init.d/qubes-firewall +++ b/vm-init.d/qubes-firewall @@ -4,9 +4,11 @@ # description: Starts Qubes Firewall monitor # # Source function library. +# shellcheck disable=SC1091 . /etc/rc.d/init.d/functions # Source Qubes library. +# shellcheck source=init/functions . /usr/lib/qubes/init/functions PIDFILE=/var/run/qubes/qubes-firewall.pid diff --git a/vm-init.d/qubes-qrexec-agent b/vm-init.d/qubes-qrexec-agent index f04a4ef..c70d3c6 100755 --- a/vm-init.d/qubes-qrexec-agent +++ b/vm-init.d/qubes-qrexec-agent @@ -4,9 +4,11 @@ # description: Executes Qubes core scripts at VM boot # # Source function library. +# shellcheck disable=SC1091 . /etc/rc.d/init.d/functions # Source Qubes library. +# shellcheck source=init/functions . /usr/lib/qubes/init/functions start() diff --git a/vm-init.d/qubes-sysinit b/vm-init.d/qubes-sysinit index 49853af..1d46d3c 100755 --- a/vm-init.d/qubes-sysinit +++ b/vm-init.d/qubes-sysinit @@ -5,6 +5,7 @@ # # Source function library. +# shellcheck disable=SC1091 . /etc/rc.d/init.d/functions start() diff --git a/vm-init.d/qubes-updates-proxy b/vm-init.d/qubes-updates-proxy index c96a0b7..0dd18d0 100755 --- a/vm-init.d/qubes-updates-proxy +++ b/vm-init.d/qubes-updates-proxy @@ -14,12 +14,15 @@ # see PidFile in the configuration file. # Source function library. +# shellcheck disable=SC1091 . /etc/rc.d/init.d/functions # Source Qubes library. +# shellcheck source=init/functions . /usr/lib/qubes/init/functions # Source networking configuration. +# shellcheck disable=SC1091 . /etc/sysconfig/network # Check that networking is up. @@ -30,6 +33,7 @@ prog=$(basename $exec) config="/etc/tinyproxy/tinyproxy-updates.conf" pidfile="/var/run/tinyproxy-updates/tinyproxy.pid" +# shellcheck disable=SC1091 [ -e /etc/sysconfig/tinyproxy-updates ] && . /etc/sysconfig/tinyproxy-updates lockfile=/var/lock/subsys/tinyproxy-updates diff --git a/vm-init.d/qubes-updates-proxy-forwarder b/vm-init.d/qubes-updates-proxy-forwarder index 0c07f3e..799cec8 100755 --- a/vm-init.d/qubes-updates-proxy-forwarder +++ b/vm-init.d/qubes-updates-proxy-forwarder @@ -10,12 +10,15 @@ # # Source function library. +# shellcheck disable=SC1091 . /etc/rc.d/init.d/functions # Source Qubes library. +# shellcheck source=init/functions . /usr/lib/qubes/init/functions # Source networking configuration. +# shellcheck disable=SC1091 . /etc/sysconfig/network # Check that networking is up. @@ -25,6 +28,7 @@ exec="/usr/bin/ncat" prog=$(basename $exec) pidfile="/var/run/qubes-updates-proxy-forwarder.pid" +# shellcheck disable=SC1091 [ -e /etc/sysconfig/qubes-updates-proxy-forwarder ] && . /etc/sysconfig/qubes-updates-proxy-forwarder lockfile=/var/lock/subsys/qubes-updates-proxy-forwarder diff --git a/vm-systemd/bind-dirs.sh b/vm-systemd/bind-dirs.sh index 67580af..1899c97 100755 --- a/vm-systemd/bind-dirs.sh +++ b/vm-systemd/bind-dirs.sh @@ -25,6 +25,7 @@ # along with this program. If not, see . # Source Qubes library. +# shellcheck source=init/functions source /usr/lib/qubes/init/functions prerequisite() { diff --git a/vm-systemd/misc-post.sh b/vm-systemd/misc-post.sh index 3ae3cf4..031e8a7 100755 --- a/vm-systemd/misc-post.sh +++ b/vm-systemd/misc-post.sh @@ -1,6 +1,7 @@ #!/bin/sh # Source Qubes library. +# shellcheck source=init/functions . /usr/lib/qubes/init/functions /usr/lib/qubes/update-proxy-configs diff --git a/vm-systemd/mount-dirs.sh b/vm-systemd/mount-dirs.sh index 70bf705..f631842 100755 --- a/vm-systemd/mount-dirs.sh +++ b/vm-systemd/mount-dirs.sh @@ -1,6 +1,7 @@ #!/bin/sh # Source Qubes library. +# shellcheck source=init/functions . /usr/lib/qubes/init/functions set -e diff --git a/vm-systemd/qubes-random-seed.sh b/vm-systemd/qubes-random-seed.sh index 7a37c88..20ab030 100755 --- a/vm-systemd/qubes-random-seed.sh +++ b/vm-systemd/qubes-random-seed.sh @@ -1,6 +1,7 @@ #!/bin/bash # Source Qubes library. +# shellcheck source=init/functions . /usr/lib/qubes/init/functions set -e diff --git a/vm-systemd/qubes-sysinit.sh b/vm-systemd/qubes-sysinit.sh index 6ba8cf6..eef4235 100755 --- a/vm-systemd/qubes-sysinit.sh +++ b/vm-systemd/qubes-sysinit.sh @@ -1,6 +1,7 @@ #!/bin/bash # Source Qubes library. +# shellcheck source=init/functions . /usr/lib/qubes/init/functions # List of services enabled by default (in case of absence of qubesdb entry)