diff options
author | Mikhail Kobuk <m.kobuk@ispras.ru> | 2024-04-07 03:43:57 +0300 |
---|---|---|
committer | Mikhail Kobuk <m.kobuk@ispras.ru> | 2024-04-07 03:43:57 +0300 |
commit | 0ce458cbd2b8c3b69cb28855934a037e6c1776ad (patch) | |
tree | 2fd302d7737ecedfd05eefe9e831566e8d3facf4 /mkcp.sh | |
parent | 232c1cb726c809599ce69dbeda7f7f716f106801 (diff) | |
download | linux-0ce458cbd2b8c3b69cb28855934a037e6c1776ad.tar.gz |
updated build and install, cleaned version, fixed typo
Diffstat (limited to 'mkcp.sh')
-rwxr-xr-x | mkcp.sh | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -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 |