|
|
6#

楼主 |
发表于 2021-2-5 13:39:21
|
只看该作者
我看一下它的关机脚本:
#!/bin/sh
#
# /etc/init.d/rc.shutdown : Executed on system shutdown or reboot
#
. /etc/init.d/rc.functions
. /etc/rcS.conf
log=/var/log/slitaz/shutdown.log
# Clear and quiet shutdown
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 2>> $log
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
是不是这个脚本里要添加什么或者删除什么??? |
|