]> git.proxmox.com Git - pve-kernel-3.10.0.git/blame - postinst.in
bump version to 3.10.0-21
[pve-kernel-3.10.0.git] / postinst.in
CommitLineData
df8f99c6
DM
1#!/usr/bin/perl -w
2
3use strict;
4
5# Ignore all invocations except when called on to configure.
6exit 0 unless $ARGV[0] =~ /configure/;
7
8# do nothing if run from proxmox installer
9exit 0 if -e "/proxmox_install_mode";
10
11my $imagedir = "/boot";
12
13my $version = "@@KVNAME@@";
14
15system("depmod $version");
16
17system("update-initramfs -c -t -b $imagedir -k $version");
18
19if (-x "/usr/sbin/update-grub") {
20 system("/usr/sbin/update-grub");
21}
22
23exit 0