diff options
author | David P <megver83@parabola.nu> | 2020-01-18 12:24:17 -0300 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2020-01-18 12:24:17 -0300 |
commit | f798bb419dbef10358ef9d8365e7d592e9a055ea (patch) | |
tree | b473ea4df7af4c1bc5cdc104af396bfb56040e65 /libre-testing/linux-libre-cros/linux-libre-cros.install | |
parent | 6723e044157885de4b420ba95f5e4e171ae5ebf6 (diff) | |
download | abslibre-f798bb419dbef10358ef9d8365e7d592e9a055ea.tar.gz abslibre-f798bb419dbef10358ef9d8365e7d592e9a055ea.tar.bz2 abslibre-f798bb419dbef10358ef9d8365e7d592e9a055ea.zip |
updpkg: libre-testing/linux-libre-cros 5.4.11-1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'libre-testing/linux-libre-cros/linux-libre-cros.install')
-rw-r--r-- | libre-testing/linux-libre-cros/linux-libre-cros.install | 11 |
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 } |