# HG changeset patch # User Christophe Lincoln # Date 1332028654 -3600 # Node ID b9cd5851a5f03e69c17fc8be24474cbbc17810b8 # Parent 11f87b20a969377c174991ece18b2231cae731f6 Moved etc/init.d/rc.shutdown to slitaz-base-files diff -r 11f87b20a969 -r b9cd5851a5f0 etc/init.d/rc.shutdown --- a/etc/init.d/rc.shutdown Wed Mar 14 23:01:07 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -#!/bin/sh -# /etc/init.d/rc.shutdown - This script is used by /etc/inittab to stop -# all daemons and shutdown the system. -# -. /etc/init.d/rc.functions -. /etc/rcS.conf - -log=/var/lib/shutdown.log - -# Bold info message with uptime -clear && echo "System is going down for reboot or halt." > $log -uptime >> $log - -# Store last alsa settings. -if [ -x /usr/sbin/alsactl ]; then - alsactl store -fi - -# Stop all daemons started at boot time. -for daemon in $RUN_DAEMONS -do - if [ -x /etc/init.d/$daemon ]; then - /etc/init.d/$daemon stop >> $log - fi -done - -# Sync all filesystems. -sync - -# Swap off. -/sbin/swapoff -a - -# Kill all processes. -killall5 - -# Umount filesystems. -/bin/umount -a -r 2>/dev/null