Browse Source

rc.sysinit: enhanced to create /var/run/.idunn-stop if idunn=stop or idunn=shell

0.2-maint
Alejandro Mery 14 years ago
parent
commit
b251073db4
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      initramfs/etc_rc.d_rc.sysinit.sh

+ 7
- 3
initramfs/etc_rc.d_rc.sysinit.sh

@ -115,8 +115,8 @@ if [ -n "$idunn" ]; then
esac
case "$x" in
shell) force_shell=$y ;;
lvm|mdadm) eval use_${x}=$y ;;
shell|stop) eval "force_shell=$y" ;;
lvm|mdadm) eval "use_${x}=$y" ;;
esac
done
fi
@ -146,7 +146,7 @@ if [ "$use_mdadm" = "yes" ]; then
status
fi
if [ -s /etc/mdadm.conf ]; then
if [ -s /etc/mdadm.conf -o -s /etc/mdadm/mdadm.conf ]; then
title "Starting RAID volumes"
check mdadm -As
sleep 1
@ -165,3 +165,7 @@ if [ -n "$(ls -1 /etc/lvm/archive/*.vg 2> /dev/null)" ]; then
check vgchange -ay
status
fi
if [ "$force_shell" = 'yes' ]; then
touch /var/run/.idunn-stop
fi

Loading…
Cancel
Save