aboutsummarylogtreecommitdiffstats
path: root/secureboot-write
blob: af20e5383e32cd039b5fcaa26754ea82d340d67d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/bash
set -e
if [ "$(whoami)" != "root" ]
then	if [ -n "${DISPLAY}" ]
	then exec pkexec "$0" "$@"
	else exec sudo "$0" "$@"
	fi
	exit 1
fi
cd /etc/secureboot
efi-updatevar -f db.auth db
efi-updatevar -f kek.auth KEK
efi-updatevar -f pk.auth PK