diff options
author | poppyschmo | 2017-08-27 18:12:09 -0700 |
---|---|---|
committer | poppyschmo | 2017-08-27 18:12:09 -0700 |
commit | 8c32e3aae83ff688de9e4996a3afc41ee37498c8 (patch) | |
tree | 559dc837aa5965b708009da98b3fc930f94a8aed | |
parent | 135853209de9baa3969486e2714433353288101f (diff) | |
download | aur-8c32e3aae83ff688de9e4996a3afc41ee37498c8.tar.gz |
Remove multi-kernel stuff
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 12 | ||||
-rw-r--r-- | chromebook_keyboard_backlight_driver.install | 7 |
3 files changed, 9 insertions, 12 deletions
@@ -1,7 +1,7 @@ pkgbase = chromebook_keyboard_backlight_driver pkgdesc = Keyboard backlight driver for various chromebook models pkgver = 1.0r14.g86bac41 - pkgrel = 1 + pkgrel = 2 url = https://github.com/corcoran/chromebook_keyboard_backlight_driver install = chromebook_keyboard_backlight_driver.install arch = i686 @@ -1,7 +1,7 @@ # Maintainer: Poppy Schmo <poppyschmo at users dot noreply.github.com> pkgname=chromebook_keyboard_backlight_driver pkgver=1.0r14.g86bac41 -pkgrel=1 +pkgrel=2 epoch= pkgdesc="Keyboard backlight driver for various chromebook models" arch=('i686' 'x86_64') @@ -32,9 +32,9 @@ package() { _conf=chromebook_keyboard_backlight_driver.conf _docd=$pkgdir/usr/share/doc/$pkgname _newest= - _multi=$pkgdir/multi-kernel.install - echo "# Run as sudo to enable driver for multiple kernels" > "$_multi" cd "$srcdir/$pkgname" + _multi=skipped_kernels.log + echo "# Modules for these kernels were skipped during install" > "$_multi" echo '# modules for' ${pkgname} > "$_conf" for each in *.ko; do if [[ $(file "$each") != *BuildID* ]]; then @@ -47,7 +47,9 @@ package() { install -Dm 644 "$each.gz" "$pkgdir/$tdir/$each.gz" _newest=$tdir else - echo "ln -s $_newest/$each ..$tdir" >> "$_multi" + # minor versions should probably match but aren't checked; + # this note gets deleted anyway if makepkg is run with -c + echo "$tdir" >> "$_multi" fi done if [[ ! $each == *"$_excl"* ]]; then @@ -61,4 +63,4 @@ package() { install -Dm 644 "$_conf" "$_confd/$_conf" } -# vim:noet:list:ft=sh +# vim:ft=sh:noet:list diff --git a/chromebook_keyboard_backlight_driver.install b/chromebook_keyboard_backlight_driver.install index a8e35a73ead6..e870f27ce7b5 100644 --- a/chromebook_keyboard_backlight_driver.install +++ b/chromebook_keyboard_backlight_driver.install @@ -17,16 +17,11 @@ _spit() { post_install() { local _confd=/etc/modules-load.d local _conf=chromebook_keyboard_backlight_driver.conf - local _multi=$pkgdir/multi-kernel.install depmod -a - _spit 'note' "Added $_conf to $_confd." + _spit "note" "Added $_conf to $_confd." _spit "For 'backlight' variant, toggle commented lines where appropriate." _spit "Or, delete file to prevent auto-loading entirely. Otherwise, reboot." _spit "Afterwards, check dmesg, lsmod, or '/sys/class/leds' to verify." - if (( $(wc -l "$_multi" | awk '{print $1}') > 1 )); then - cp -v "$_multi" /tmp - _spit "To use on multiple kernels, run \`sudo bash /tmp/${_multi##*/}\`" - fi } post_upgrade() { |