#!/bin/sh # Aurora display service (B9C). Started once by /init; no OpenRC. # /etc/init.d/aurora-display start | status — kernel cmdline 'aurora.display=off' disables autostart. C=/usr/sbin/aurora-display; D=/run/aurora-display; L=$D/service.log mkdir -p $D case "$1" in start) grep -qw aurora.display=off /proc/cmdline && { echo "aurora-display: disabled by cmdline"; exit 0; } ( $C start >> $L 2>&1; echo "=== service start rc=$? $(cut -d' ' -f1 /proc/uptime)" >> $L ) & echo "aurora-display: starting (pid $!, log $D/display.log)";; status) $C status; tail -3 $D/display.log 2>/dev/null;; *) echo "usage: $0 start|status"; exit 2;; esac