[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to make a postinst script in Debian architecture dependent?



Svante Signell, le Thu 17 Mar 2011 20:08:10 +0100, a écrit :
> On Thu, 2011-03-17 at 14:00 +0100, Samuel Thibault wrote:
> > Svante Signell, le Thu 17 Mar 2011 10:02:02 +0100, a écrit :
> > > Now when x86info-1.25 builds OK from source with the updated header
> > > file /usr/include/bits/sched from libc0.3-dev I'm tring to get the
> > > package built and installed under GNU/Hurd. However, after changing the
> > > debian/control file I have problems with the postinst script:
> > > 
> > > if [ ! -c /dev/cpu/0/cpuid -a -x /dev/MAKEDEV ]; then
> > > 	(cd /dev ; ./MAKEDEV cpu )
> > > fi
> > > 
> > > How to disable the above command?
> > 
> > Since that is linux-only, I'd say the simplest is to test
> > 
> > [ `uname` = Linux ]
> 
> The control file also lists kfreebsd-{i386,amd64}
> maybe using [`uname` != GNU] is better?

I believe kfreebsd doesn't have /dev/cpu/0/cpuid either.

Samuel


Reply to: