File: postinst

package info (click to toggle)
memtest86%2B 5.01-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,324 kB
  • ctags: 2,580
  • sloc: ansic: 17,514; asm: 1,805; makefile: 191; 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#