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
 
 
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to