#!/bin/sh # Copyright (C) 2018 Alkis Georgopoulos # SPDX-License-Identifier: GPL-3.0-or-later # # Call update-kernels upon ltsp-client-core installation. set -e # https://www.debian.org/doc/debian-policy/#summary-of-ways-maintainer-scripts-are-called # The postinst script may be called in the following ways: # configure # abort-upgrade # abort-remove in-favour # abort-remove # abort-deconfigure in-favour # # [removing ] # # But it also can be called like this, from dpkg-reconfigure : # reconfigure case "$1" in configure) /usr/share/ltsp/update-kernels ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0