From cea91329b2836bab9a14d256ebe7f19bf352dd9a Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Tue, 17 Feb 2009 21:56:21 +0200 Subject: [PATCH] rc.switchroot: enhanced to stop networking before switch to the real root --- initramfs/etc_rc.d_rc.switchroot.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/initramfs/etc_rc.d_rc.switchroot.sh b/initramfs/etc_rc.d_rc.switchroot.sh index b317156..23ed575 100644 --- a/initramfs/etc_rc.d_rc.switchroot.sh +++ b/initramfs/etc_rc.d_rc.switchroot.sh @@ -3,7 +3,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # 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. # @@ -18,7 +18,9 @@ case "$1" in stop) - # TODO: stop network + title "Stoping network interfaces" + check unet down + status title "Moving special filesystems" for x in dev sys proc; do @@ -34,7 +36,9 @@ revive) done status - # TODO: restart network + title "Restarting network interfaces" + check unet up + status title "Restarting Supervisor" check start-stop-daemon -S -b -x /usr/bin/runsvdir -- /var/service/