From 78fcb0a356c39e744b6697b214208300e6a19a45 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 21 Dec 2006 18:08:29 +0000 Subject: [PATCH] * Skip the sys-* events, otherwise we reboot accidentally. svn path=/nixos/trunk/; revision=7451 --- configuration/switch-to-configuration.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configuration/switch-to-configuration.sh b/configuration/switch-to-configuration.sh index 1a83f380a77c..b0c412e546af 100644 --- a/configuration/switch-to-configuration.sh +++ b/configuration/switch-to-configuration.sh @@ -70,6 +70,10 @@ if test "$action" = "switch" -o "$action" = "test"; then # Start all new services and restart all changed services. for event in $(cd $newEvents && ls); do + + # Hack: skip the sys-* events. + if echo "$event" | grep -q "^sys-"; then continue; fi + if ! test -e "$oldEvents/$event"; then echo "starting $event..." initctl start "$event"