Browse Source

rc.switchroot: enhanced to stop networking before switch to the real root

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

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

@ -3,7 +3,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: target/idunn/initramfs/etc_rc.d_rc.switchroot.sh # Filename: target/idunn/initramfs/etc_rc.d_rc.switchroot.sh
# Copyright (C) 2008 The OpenSDE Project
# Copyright (C) 2008 - 2009 The OpenSDE Project
# #
# More information can be found in the files COPYING and README. # More information can be found in the files COPYING and README.
# #
@ -18,7 +18,9 @@
case "$1" in case "$1" in
stop) stop)
# TODO: stop network
title "Stoping network interfaces"
check unet down
status
title "Moving special filesystems" title "Moving special filesystems"
for x in dev sys proc; do for x in dev sys proc; do
@ -34,7 +36,9 @@ revive)
done done
status status
# TODO: restart network
title "Restarting network interfaces"
check unet up
status
title "Restarting Supervisor" title "Restarting Supervisor"
check start-stop-daemon -S -b -x /usr/bin/runsvdir -- /var/service/ check start-stop-daemon -S -b -x /usr/bin/runsvdir -- /var/service/

Loading…
Cancel
Save