wok-next view efivar/receipt @ rev 21722
efivar: typo in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 01 10:31:46 2020 +0000 (2020-09-01) |
parents | 6ef8d7e265d4 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="efivar"
4 VERSION="37"
5 CATEGORY="system-tools"
6 SHORT_DESC="Manage UEFI variables."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="LGPLv2.1"
9 WEB_SITE="https://github.com/rhboot/efivar"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/$VERSION/$TARBALL"
14 SPLIT="$PACKAGE-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 make libdir=/usr/lib &&
20 make libdir=/usr/lib DESTDIR=$DESTDIR install
21 }
23 post_install()
24 {
25 # if SliTaz was booted by EFI, mount evivarfs now
26 [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars
27 # and after reboot:
28 # insert mount into /etc/init.d/local.sh
29 grep -qs efivarfs $1/etc/init.d/local.sh ||
30 echo -e "#inserted by post_install of evifar up to END-efivar:
31 [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars
32 #END-efivar" >>$1/etc/init.d/local.sh
33 }