#!/bin/sh if [ -e /run/runit.runlevel.6 ]; then exec printf 'N 6' elif [ -e /run/runit.runlevel.0 ]; then exec printf 'N 0' else exec printf 'N 2' fi