File: notify-reboot-required

package info (click to toggle)
reboot-notifier 0.12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 56 kB
  • sloc: sh: 26; makefile: 2
file content (8 lines) | stat: -rwxr-xr-x 248 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
#!/bin/sh

if [ "$0" = "/etc/kernel/postinst.d/reboot-notifier" ]; then
    DPKG_MAINTSCRIPT_PACKAGE=linux-base
fi

echo "*** System restart required ***" > /var/run/reboot-required
echo "$DPKG_MAINTSCRIPT_PACKAGE" >> /var/run/reboot-required.pkgs