dotfiles

My collection of dotfiles
git clone git://git.stellar-nexus.ru/dotfiles
Log | Files | Refs

02-rc.shutdown.diff (603B)


      1 --- sinit-scripts-main/bin/rc.shutdown
      2 +++ sinit-scripts-main/bin/rc.shutdown
      3 @@ -39,27 +39,19 @@
      4  echo "[ !! ] pkill -9 (murdering)..."
      5  pkill -9 -e 1
      6  
      7 -
      8  echo;
      9 -echo "[ {} ] swapoff -a..."
     10 -swapoff -a
     11 -
     12  echo "[ {} ] Remounting filesystems as read-only..."
     13  echo "u" > /proc/sysrq-trigger
     14 -sleep 3
     15  
     16  echo "[ {} ] Syncing filesystems..."
     17  sync
     18  echo "s" > /proc/sysrq-trigger
     19 -sleep 3
     20  
     21  echo;
     22  if test "$shutdown_mode" = "reboot"; then
     23    echo "[ OK ] Rebooting..."
     24 -  sleep 1
     25    echo "b" > /proc/sysrq-trigger
     26  else
     27    echo "[ OK ] Powering off..."
     28 -  sleep 1
     29    echo "o" > /proc/sysrq-trigger
     30  fi