File: runlevel

package info (click to toggle)
runit 2.2.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,568 kB
  • sloc: ansic: 6,071; sh: 3,419; makefile: 399
file content (7 lines) | stat: -rwxr-xr-x 194 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
#!/bin/sh
unset CURLEVEL
CURLEVEL="$(head -c 1 /run/runit.runlevel 2>/dev/null)"
if [ "$CURLEVEL" != '0' ] && [ "$CURLEVEL" != '6' ]; then
        CURLEVEL=2
fi
exec printf '%s\n' "N $CURLEVEL"