t-wissmann / archlinux-update-modules Goto Github PK
View Code? Open in Web Editor NEWKeep your /usr/lib/modules sensible on arch linux
Keep your /usr/lib/modules sensible on arch linux
Using an alpm-hook, it's possible to automatically run this kind of cleanup when a package modifies /usr/lib/modules
, which combined with an AUR package to install the script and hook would make solving the kernel modules issue as easy as installing one AUR package and forgetting about it!
I was able to get it working with minor edits, but I broke it for other kernels so I didn't submit a patch.
$ ~/.config/zsh/archlinux-update-modules/archlinux-update-modules
> Running kernel package: name=linux version=5.3.12.arch1-1 architecture=x86_64
> The running kernel 5.3.12-arch1-1 already has a module directory /usr/lib/modules/5.3.12-arch1-1, nothing to do
> 1 old directories in /usr/lib/modules
==> Remove old module dir ?
:: sudo rm -rf /usr/lib/modules/ [y/N] n
This seems to have been caused by pacman beginning to emit a trailing newline, meaning mapfile starts treating it as an array of length 1.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.