ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/rc.live
sparky
cvs at pld-linux.org
Sun Jul 16 03:30:24 CEST 2006
Author: sparky
Date: Sun Jul 16 03:30:22 2006
New Revision: 7529
Modified:
ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/rc.live
Log:
- allways touch /tmp/swapon
Modified: ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/rc.live
==============================================================================
--- ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/rc.live (original)
+++ ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/rc.live Sun Jul 16 03:30:22 2006
@@ -80,14 +80,15 @@
if [ -z "$swap" ]; then
swap=$(nvvar swap)
fi
- if [ -z "$swap" ]; then
- touch /tmp/swapon
- else
+
+ if [ -n "$swap" ]; then
for DEV in $(echo $swap | tr "," " " ); do
[[ $DEV == /dev/* ]] || DEV="/dev/$DEV"
echo "$DEV swap swap defaults 0 0" >> /etc/fstab
done
fi
+
+ touch /tmp/swapon
fi
More information about the pld-cvs-commit
mailing list