File: script

package info (click to toggle)
needrestart 3.11-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 780 kB
  • sloc: perl: 3,552; sh: 394; makefile: 83
file content (19 lines) | stat: -rwxr-xr-x 277 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

PATH="/sbin:$PATH"

exec >&3

if [ -x /usr/sbin/needrestart ] ; then
	printf "needrestart output:\n"
	/usr/sbin/needrestart  -v -r l
fi

printf "\n"

if [ -x /usr/sbin/checkrestart ] ; then
	printf "checkrestart output:\n"
	/usr/sbin/checkrestart -v
fi

printf "\n"