17 lines
445 B
Bash
Executable File
17 lines
445 B
Bash
Executable File
# -*- mode: sh; fill-column: 75; tab-width: 8; coding: utf-8-unix -*-
|
|
|
|
ROLE=gpgkey
|
|
DST=/boot/intel-uc_pentoo19.cpio
|
|
|
|
a=$( find /lib/firmware/intel-ucode/ -type f -newer $DST |wc -l )
|
|
[ $? -ne 0 -o $a -eq 0 ] && exit 0
|
|
|
|
iucode_tool -S --write-earlyfw=$DST /lib/firmware/intel-ucode/*
|
|
|
|
base=$( basename $DST )
|
|
dir=/l/syslinux
|
|
[ -d $dir ] || exit 0
|
|
[ -f $dir/$base ] && diff -q $DST /l/syslinux/$base && exit 0
|
|
cp -p $DST /l/syslinux/$base
|
|
exit 0
|