From 4ee50f81e1f2f78af3298439ab8a9d9d96aa4d18 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 9 Aug 2011 14:18:17 -0400 Subject: Drop fedora-autoswap; it's somewhat dangerous, and better done via a udev/systemd combination anyway. --- systemd/fedora-autoswap | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 systemd/fedora-autoswap (limited to 'systemd/fedora-autoswap') diff --git a/systemd/fedora-autoswap b/systemd/fedora-autoswap deleted file mode 100755 index ea392909..00000000 --- a/systemd/fedora-autoswap +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# -# Support automatic swapon. -# - -. /etc/init.d/functions - -if [ "$AUTOSWAP" = "yes" ]; then - curswap=$(awk '/^\/dev/ { print $1 }' /proc/swaps | while read x; do get_numeric_dev dec $x ; echo -n " "; done) - swappartitions=$(blkid -t TYPE=swap -o device) - if [ x"$swappartitions" != x ]; then - for partition in $swappartitions ; do - [ ! -e $partition ] && continue - majmin=$(get_numeric_dev dec $partition) - echo $curswap | grep -qw "$majmin" || action $"Enabling local swap partitions: " swapon $partition - done - fi -fi -- cgit v1.2.1