File: zg-policy-rc.d

package info (click to toggle)
policyrcd-script-zg2 0.1-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 332 kB
  • sloc: sh: 2,940; makefile: 10
file content (25 lines) | stat: -rw-r--r-- 380 bytes parent folder | download | duplicates (3)
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
#!/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