summaryrefslogtreecommitdiff
path: root/mkcp.sh
blob: e75c9f0f3821407c4c102672d741353f9339d4c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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