aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit1
1 files changed, 1 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 1f363383..fd8ae8df 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -838,6 +838,7 @@ if [ "$AUTOSWAP" = "yes" ]; then
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