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