added file missing from last commit to use 'runlevel' rather than 'bootstate'