mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-29 16:49:21 +01:00
Adjustments to the shutdown scripts
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9784 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
c8995814d1
commit
e77cfbf41a
@ -90,8 +90,8 @@ rc0: files
|
|||||||
ln -sf ../init.d/network ${EXTDIR}/rc.d/rc0.d/K80network
|
ln -sf ../init.d/network ${EXTDIR}/rc.d/rc0.d/K80network
|
||||||
ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc0.d/K90sysklogd
|
ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc0.d/K90sysklogd
|
||||||
ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc0.d/S60sendsignals
|
ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc0.d/S60sendsignals
|
||||||
|
ln -sf ../init.d/swap ${EXTDIR}/rc.d/rc0.d/S65swap
|
||||||
ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rc0.d/S70mountfs
|
ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rc0.d/S70mountfs
|
||||||
ln -sf ../init.d/swap ${EXTDIR}/rc.d/rc0.d/S80swap
|
|
||||||
ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rc0.d/S90localnet
|
ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rc0.d/S90localnet
|
||||||
ln -sf ../init.d/halt ${EXTDIR}/rc.d/rc0.d/S99halt
|
ln -sf ../init.d/halt ${EXTDIR}/rc.d/rc0.d/S99halt
|
||||||
|
|
||||||
@ -119,8 +119,8 @@ rc6: files
|
|||||||
ln -sf ../init.d/network ${EXTDIR}/rc.d/rc6.d/K80network
|
ln -sf ../init.d/network ${EXTDIR}/rc.d/rc6.d/K80network
|
||||||
ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc6.d/K90sysklogd
|
ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc6.d/K90sysklogd
|
||||||
ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc6.d/S60sendsignals
|
ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc6.d/S60sendsignals
|
||||||
|
ln -sf ../init.d/swap ${EXTDIR}/rc.d/rc6.d/S65swap
|
||||||
ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rc6.d/S70mountfs
|
ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rc6.d/S70mountfs
|
||||||
ln -sf ../init.d/swap ${EXTDIR}/rc.d/rc6.d/S80swap
|
|
||||||
ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rc6.d/S90localnet
|
ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rc6.d/S90localnet
|
||||||
ln -sf ../init.d/reboot ${EXTDIR}/rc.d/rc6.d/S99reboot
|
ln -sf ../init.d/reboot ${EXTDIR}/rc.d/rc6.d/S99reboot
|
||||||
|
|
||||||
|
@ -62,11 +62,11 @@ case "${1}" in
|
|||||||
stop)
|
stop)
|
||||||
# Don't unmount tmpfs like /run
|
# Don't unmount tmpfs like /run
|
||||||
log_info_msg "Unmounting all other currently mounted file systems..."
|
log_info_msg "Unmounting all other currently mounted file systems..."
|
||||||
umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs >/dev/null
|
umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc >/dev/null
|
||||||
evaluate_retval
|
evaluate_retval
|
||||||
|
|
||||||
# Make all LVM volume groups unavailable, if appropriate
|
# Make all LVM volume groups unavailable, if appropriate
|
||||||
if [ -x /sbin/vgchange ]; then /sbin/vgchange -an; fi
|
if [ -x /sbin/vgchange ]; then /sbin/vgchange -an > /dev/null; fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user