summaryrefslogtreecommitdiff
path: root/libre-testing/linux-libre-cros/linux-libre-cros.install
diff options
context:
space:
mode:
Diffstat (limited to 'libre-testing/linux-libre-cros/linux-libre-cros.install')
-rw-r--r--libre-testing/linux-libre-cros/linux-libre-cros.install11
1 files changed, 4 insertions, 7 deletions
diff --git a/libre-testing/linux-libre-cros/linux-libre-cros.install b/libre-testing/linux-libre-cros/linux-libre-cros.install
index 962dcc3b3..05264329e 100644
--- a/libre-testing/linux-libre-cros/linux-libre-cros.install
+++ b/libre-testing/linux-libre-cros/linux-libre-cros.install
@@ -1,4 +1,4 @@
-flash_kernel() {
+post_install () {
if mountpoint -q /boot; then
major=$(mountpoint -d /boot | cut -f 1 -d ':')
minor=$(mountpoint -d /boot | cut -f 2 -d ':')
@@ -10,7 +10,8 @@ flash_kernel() {
device="/dev/${device/%2/1}"
echo "A new kernel version needs to be flashed onto $device."
- read -rp "Do you want to do this now? [y|N] " shouldwe
+ echo "Do you want to do this now? [y|N]"
+ read -r shouldwe
if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
dd if=/boot/vmlinux.kpart of=$device
sync
@@ -20,10 +21,6 @@ flash_kernel() {
fi
}
-post_install () {
- flash_kernel
-}
-
post_upgrade() {
- flash_kernel
+ post_install
}