aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-07-21 15:34:58 +0000
committerBill Nottingham <notting@redhat.com>2006-07-21 15:34:58 +0000
commit53ff3dc192fdcab3c0ace01f33850b05eff86215 (patch)
tree04d0cf6c4ecf0e50b039d710214ec0deec106644 /rc.d
parent278ed116c80ca26e5e75d47672b165aa22deac56 (diff)
downloadinitscripts-53ff3dc192fdcab3c0ace01f33850b05eff86215.tar
initscripts-53ff3dc192fdcab3c0ace01f33850b05eff86215.tar.gz
initscripts-53ff3dc192fdcab3c0ace01f33850b05eff86215.tar.bz2
initscripts-53ff3dc192fdcab3c0ace01f33850b05eff86215.tar.xz
initscripts-53ff3dc192fdcab3c0ace01f33850b05eff86215.zip
hack; make sure it exists
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