From 33a320e456f7c73004e2869d176fe353a90ccc67 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Tue, 23 Dec 2008 21:52:52 +0200 Subject: [PATCH] init: changed to `wall` when `resume` passes --- initramfs/init.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/initramfs/init.sh b/initramfs/init.sh index f6900a3..3c2e842 100644 --- a/initramfs/init.sh +++ b/initramfs/init.sh @@ -68,4 +68,9 @@ ln -s /etc/console /var/service/ while true; do sleep 1; + if [ -e /var/run/.idunn-resume ]; then + # switch_root requested + echo "switch_root in progress, you will be disconnected now." | wall + rm /var/run/.idunn-resume + fi done