From 0ce458cbd2b8c3b69cb28855934a037e6c1776ad Mon Sep 17 00:00:00 2001 From: Mikhail Kobuk Date: Sun, 7 Apr 2024 03:43:57 +0300 Subject: updated build and install, cleaned version, fixed typo --- mkcp.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 mkcp.sh (limited to 'mkcp.sh') diff --git a/mkcp.sh b/mkcp.sh new file mode 100755 index 0000000..89362e4 --- /dev/null +++ b/mkcp.sh @@ -0,0 +1,27 @@ +#! /bin/bash + +# cd $1 + +if [ "$(diff /etc/mkinitcpio.d/linux-VMKOS.preset ./linux-VMKOS.preset)" != "" ]; then + echo "kernel preset does not match package-provided" + option="" + read -p "(keep local = k / use package provided = p): " option + + case option in + k) + echo "keeping local version" + ;; + p) + echo "using package-provided" + sudo install -C -m544 ./linux-VMKOS.preset /etc/mkinitcpio.d/linux-VMKOS.preset + ;; + *) + echo "err" + exit 1 + ;; + esac +fi + +sudo mkinitcpio -v -p linux-VMKOS + +touch ../mkcp.ok -- cgit v1.2.3