[go: up one dir, main page]

File: get-init

package info (click to toggle)
init-select 1.20140921
  • links: PTS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 140 kB
  • sloc: sh: 41; makefile: 8
file content (13 lines) | stat: -rwxr-xr-x 267 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh -e

test ! -f /etc/default/init && exit

. /etc/default/init

test -z $INIT && exit

test ! -x $INIT -a ! -e /run/init-select-nocheck && \
        echo "error: $INIT either does not exist or is not executable" && \
        exit 1 || true

echo "init=$INIT"