* Skip the sys-* events, otherwise we reboot accidentally.
svn path=/nixos/trunk/; revision=7451
This commit is contained in:
parent
42cf9a9050
commit
78fcb0a356
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user