[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 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 ]

Samuel


Reply to: