Tales from a strange world

AKA Rasher's jornal-thingy. Want to go back?


Automatically building with module-assistant

- 2011-03-10 11:44:27 [edit]

If you, like me need a driver that's not included in the main Debian kernel, you have hopefully found module-assistant which helps automate the process of building kernel module packages. However, this is tedious to do each time you update your kernel, and you'll probably forget, like me.

But fear not, the kernel packages provide hooks that will call scripts for you on pre/post install/remove. With this knowledge, we can automate the task of building and installing driver packages completely.

Put this in /etc/kernel/postinst.d/build-module-assistant-modules:


#!/bin/sh
# Based on
# /usr/share/doc/module-assistant/examples/non-interactive-auto-update.sh

KERNEL_VERSION=$1 # This is how kernel hooks work

# apt-listchanges should not interrupt it
APT_LISTCHANGES_FRONTEND=mail
export APT_LISTCHANGES_FRONTEND

t=`mktemp`
# hide output if everything was okay, good for cron jobs
module-assistant -vito -l $KERNEL_VERSION update,a-i alli > "$t" 2>&1 || cat "$t"
rm -f "$t"

I haven't had chance to test this yet, so I'll fix this post if it turns out there's a bug.



How does homeopathy work?

- 2010-03-15 00:57:24 [edit]

Just found a page explaining how does homeopathy work?.


Huawei E1752 on Debian Unstable

- 2010-01-22 18:03:31 [edit]

My ISP Telenor recently gave me 6 months of mobile broadband, and a Huawei E1752 modem for it. After some attempts at using udev's modem-modeswitch, it turned out that simply installing the usb-modeswitch package was enough to make the modem appear in network-manager and from there it was simply a madder of following the onscreen intructions (picking Cybercity as ISP).


Music music music

- 2008-10-03 01:20:03 [edit]

More music acquired over the last couple of months. Some bought, some birthday presents.



Java browser plugin on Debian amd64

- 2008-08-05 17:03:20 [edit]

Apparently there is no working Java plugin for Debian/amd64 EVERYTHING SUCKS. What utter crap.

Oldest Next 5

Valid XHTML 1.0! Some rights reserved Add to Google RSS feed for this journal