From e5534a72d2c75faf1d8024ec20e7273a7c3ddc80 Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Thu, 13 Aug 2020 19:46:50 +0000 Subject: Thu Aug 13 19:46:50 UTC 2020 a/sysvinit-scripts-2.1-noarch-35.txz: Rebuilt. rc.6: don't try to turn off swap if none is active. Thanks to stf92. ap/man-pages-5.08-noarch-1.txz: Upgraded. d/python-setuptools-49.4.0-x86_64-1.txz: Upgraded. x/libinput-1.16.1-x86_64-1.txz: Upgraded. xfce/tumbler-0.3.0-x86_64-1.txz: Upgraded. --- source/a/sysvinit-scripts/scripts/rc.6 | 8 +++++--- source/a/sysvinit-scripts/sysvinit-scripts.SlackBuild | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'source/a') diff --git a/source/a/sysvinit-scripts/scripts/rc.6 b/source/a/sysvinit-scripts/scripts/rc.6 index 405773d10..e3e71bef0 100644 --- a/source/a/sysvinit-scripts/scripts/rc.6 +++ b/source/a/sysvinit-scripts/scripts/rc.6 @@ -225,9 +225,11 @@ fi $shutdown_command -w # Turn off swap: -echo "Turning off swap." -/sbin/swapoff -a -/bin/sync +if [ ! "$(cat /proc/swaps | wc -l)" = "1" ]; then + echo "Turning off swap." + /sbin/swapoff -a + /bin/sync +fi # Stop cgmanager and cgproxy: if [ -x /etc/rc.d/rc.cgmanager ]; then diff --git a/source/a/sysvinit-scripts/sysvinit-scripts.SlackBuild b/source/a/sysvinit-scripts/sysvinit-scripts.SlackBuild index 3f08aad90..34d6dd3bc 100755 --- a/source/a/sysvinit-scripts/sysvinit-scripts.SlackBuild +++ b/source/a/sysvinit-scripts/sysvinit-scripts.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=sysvinit-scripts VERSION=${VERSION:-2.1} ARCH=noarch -BUILD=${BUILD:-34} +BUILD=${BUILD:-35} # If the variable PRINT_PACKAGE_NAME is set, then this script will report what # the name of the created package would be, and then exit. This information -- cgit v1.2.3