summaryrefslogblamecommitdiff
path: root/mkcp.sh
blob: 89362e4431f660664b4f3f3ea7d478b7b3d2f2d0 (plain) (tree)


























                                                                                                       
#! /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