File: zg-policy-rc.d

package info (click to toggle)
policyrcd-script-zg2 0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 308 kB
  • sloc: sh: 2,940; makefile: 10
file content (27 lines) | stat: -rw-r--r-- 444 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

CONFFILE="/etc/zg-policy-rc.d.conf"

if [ -z "${POLICYRCD}" ]; then
  if [ -f "${CONFFILE}" ]; then
    . "${CONFFILE}"
  fi
fi

if [ -z "${POLICYRCD}" ]; then
  for file in /usr/local/sbin/policy-rc.d /etc/policy-rc.d; do
    if [ -x "${file}" ]; then
      POLICYRCD="${file}"
      break
    fi
  done
fi

if [ -n "${POLICYRCD}" ]; then
  ${POLICYRCD} "$@"
  exit $?
else
  exit 0
fi

# vim:ft=sh:tabstop=2:expandtab:shiftwidth=2