diff options
author | David P <megver83@parabola.nu> | 2020-01-16 16:09:36 -0300 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2020-01-16 16:09:36 -0300 |
commit | 05f05e3911a5399697255d609c80b65e1b930940 (patch) | |
tree | cb4fa2eff8516bdb306f0f3d4ca92cd3abc0e04c /libre-testing/linux-libre-veyron/linux.install | |
parent | 51f675e2eaeb6fe846a7e3faa5ee43fa57abb56d (diff) | |
download | abslibre-05f05e3911a5399697255d609c80b65e1b930940.tar.gz abslibre-05f05e3911a5399697255d609c80b65e1b930940.tar.bz2 abslibre-05f05e3911a5399697255d609c80b65e1b930940.zip |
updpkg: libre-testing/linux-libre-veyron 4.19.94-1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'libre-testing/linux-libre-veyron/linux.install')
-rw-r--r-- | libre-testing/linux-libre-veyron/linux.install | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/libre-testing/linux-libre-veyron/linux.install b/libre-testing/linux-libre-veyron/linux.install deleted file mode 100644 index a524c8c38..000000000 --- a/libre-testing/linux-libre-veyron/linux.install +++ /dev/null @@ -1,38 +0,0 @@ - -flash_kernel() { - major=$(mountpoint -d / | cut -f 1 -d ':') - minor=$(mountpoint -d / | cut -f 2 -d ':') - device=$(awk '{if ($1 == "'"${major}"'" && $2 == "'"${minor}"'") print $4}' < /proc/partitions) - device="/dev/${device/%2/1}" - - echo "A new kernel version needs to be flashed onto ${device}." - echo -n " do you want to do this now? [y/N] " - read -n 1 -r - (( ${#REPLY} == 1 )) && echo - - if [[ ! $REPLY =~ ^[Yy]$ ]]; then - echo "You can do this later by running:" - echo "# dd if=/boot/vmlinux.kpart of=${device}" - else - dd if=/boot/vmlinux.kpart of="${device}" - sync - fi -} - -post_install () { - flash_kernel -} - -post_upgrade() { - if [ "$(uname -m)" = "x86_64" ] || [ "$(uname -m)" = "i686" ]; then - if findmnt --fstab -uno SOURCE /boot &>/dev/null && ! mountpoint -q /boot; then - echo "WARNING: /boot appears to be a separate partition but is not mounted." - fi - fi - flash_kernel -} - -post_remove() { - rm -f boot/initramfs-%PKGBASE%.img - rm -f boot/initramfs-%PKGBASE%-fallback.img -} |