[BACK]Return to swap1 CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc / rc.d

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/etc/rc.d/swap1 between version 1.10 and 1.11

version 1.10, 2009/04/21 16:08:57 version 1.11, 2009/09/24 16:45:48
Line 18  stop_cmd="swap1_stop"
Line 18  stop_cmd="swap1_stop"
 #  #
 swap1_start()  swap1_start()
 {  {
           # Treat exit status 2 from swapctl(8) as successful; it means
           # "no error, but no suitable swap devices were configured".
           #
         if ! checkyesno no_swap; then          if ! checkyesno no_swap; then
                 swapctl -A -t blk                  swapctl -A -t blk || [ $? = 2 ]
         fi          fi
 }  }
   
Line 29  swap1_stop()
Line 32  swap1_stop()
 {  {
         if checkyesno swapoff || [ -n "$rc_force" ]; then          if checkyesno swapoff || [ -n "$rc_force" ]; then
                 echo "Removing block-type swap devices"                  echo "Removing block-type swap devices"
                 swapctl -U -t blk                  swapctl -U -t blk || [ $? = 2 ]
         fi          fi
 }  }
   

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

CVSweb <webmaster@jp.NetBSD.org>