File: postinst

package info (click to toggle)
memtest86+ 5.01-3.1
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 1,364 kB
  • sloc: ansic: 18,486; asm: 1,805; makefile: 239; sh: 127
file content (20 lines) | stat: -rw-r--r-- 404 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -e

. /usr/share/debconf/confmodule

if [ "$1" = configure ]; then
    db_get shared/memtest86-run-lilo
    if [ "$RET" = true ] &&
	[ -x /sbin/lilo ] && [ -r /etc/lilo.conf ] &&
	grep "image.*=.*/boot/memtest86+.bin" /etc/lilo.conf >/dev/null
    then
	lilo
    fi

    if [ -e /boot/grub/grub.cfg ] && [ -x "`which update-grub2 2>/dev/null`" ] ; then
	update-grub2
    fi
fi

#DEBHELPER#