]> git.proxmox.com Git - pve-kernel-2.6.32.git/blame - postinst.in
update to vzkernel-2.6.32-042stab113.12.src.rpm
[pve-kernel-2.6.32.git] / postinst.in
CommitLineData
1cfff965
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
0f55fa43
DM
17if (-d "/etc/kernel/postinst.d") {
18 print STDERR "Examining /etc/kernel/postinst.d.\n";
19 system ("run-parts --verbose --exit-on-error --arg=$version " .
20 "--arg=$imagedir/vmlinuz-$version " .
21 "/etc/kernel/postinst.d") &&
22 die "Failed to process /etc/kernel/postinst.d";
1cfff965
DM
23}
24
25exit 0