Bug#550584: Running flash-kernel automatically from postinst
On Fri, Sep 24, 2010 at 10:36:23AM +0200, Julien Cristau wrote:
>On Thu, Sep 23, 2010 at 12:55:55 +0100, Steve McIntyre wrote:
>
>> tags 550584 +patch
>> thanks
>>
>> Hiya,
>>
>> I'm just upgrading the kernels on the armel dev boards we're hosting
>> at ARM for buildds, and I've done exactly what's suggested here. I've
>> added the following script as /etc/kernel/postinst.d/zz-flash-kernel :
>>
>> -----------
>> #!/bin/sh
>>
>> version="$1"
>> bootopt=""
>>
>> # passing the kernel version is required
>> [ -z "${version}" ] && exit 0
>>
>> echo "Running flash-kernel ${version}"
>> flash-kernel ${version}
>> ---------
>>
>You might want to write to stderr instead (the kernel postinst uses
>debconf).
Doh, of course.
--
Steve McIntyre, Cambridge, UK. steve@einval.com
Who needs computer imagery when you've got Brian Blessed?
Reply to: