diff options
author | David P <megver83@parabola.nu> | 2020-05-11 22:41:13 -0400 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2020-05-11 22:41:13 -0400 |
commit | a8472724398b1b36818fc221c4d7e6ddfa9cde41 (patch) | |
tree | fec2c34f7beb00dee20be6c425c738b7efef07e9 /libre/linux-libre/linux-libre-chromebook.install | |
parent | b83a28187f8d00332e340aa08300ad7218bf16a0 (diff) | |
download | abslibre-a8472724398b1b36818fc221c4d7e6ddfa9cde41.tar.gz abslibre-a8472724398b1b36818fc221c4d7e6ddfa9cde41.tar.bz2 abslibre-a8472724398b1b36818fc221c4d7e6ddfa9cde41.zip |
updpkg: libre/linux-libre 5.6.12-1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'libre/linux-libre/linux-libre-chromebook.install')
-rw-r--r-- | libre/linux-libre/linux-libre-chromebook.install | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libre/linux-libre/linux-libre-chromebook.install b/libre/linux-libre/linux-libre-chromebook.install new file mode 100644 index 000000000..54682de7e --- /dev/null +++ b/libre/linux-libre/linux-libre-chromebook.install @@ -0,0 +1,26 @@ +post_install () { + if mountpoint -q /boot; then + major=$(mountpoint -d /boot | cut -f 1 -d ':') + minor=$(mountpoint -d /boot | cut -f 2 -d ':') + else + major=$(mountpoint -d / | cut -f 1 -d ':') + minor=$(mountpoint -d / | cut -f 2 -d ':') + fi + device=$(cat /proc/partitions | awk {'if ($1 == "'${major}'" && $2 == "'${minor}'") print $4 '}) + device="/dev/${device/%2/1}" + + echo "A new kernel version needs to be flashed onto ${device}." + 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 + else + echo "You can do this later by running:" + echo "# dd if=/boot/vmlinux.kpart of=${device}" + fi +} + +post_upgrade() { + post_install +} |