File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ build() {
3333 # asahi-scripts dependencies
3434 add_full_dir /usr/share/asahi-scripts
3535 add_binary /usr/bin/update-vendor-firmware
36+ add_binary /usr/bin/comm
3637
3738 # Firmware update script
3839 add_runscript
Original file line number Diff line number Diff line change 4646
4747cd " $TARGET_ROOT /$TARGET "
4848
49- if [ -e " $TARGET_MANIFEST " ] && \
50- cmp -s " $TARGET_MANIFEST " " $VENDORFW /manifest.txt" ; then
51- echo " Vendor firmware is up to date, nothing to do."
52- $umount && umount /run/.system-efi
53- exit 0
49+ if [ -e " $TARGET_MANIFEST " ]; then
50+ h_cur=$( sha1sum " $TARGET_MANIFEST " | cut -d" " -f1)
51+ h_new=$( sha1sum " $VENDORFW /manifest.txt" | cut -d" " -f1)
52+ if [ " $h_cur " == " $h_new " ]; then
53+ echo " Vendor firmware is up to date, nothing to do."
54+ $umount && umount /run/.system-efi
55+ exit 0
56+ fi
5457fi
5558
5659echo " Extracting updated vendor firmware..."
You can’t perform that action at this time.
0 commit comments