#!/bin/bash #DEP:linux_src #DEP:linux NAME=drv_mISDN2 CWD=`pwd` VER=2_291109 PKGTMP=/tmp/pkgtmp mkdir -p $PKGTMP/etc/postinst.d cp $CWD/post.mISDN $PKGTMP/etc/postinst.d || exit 1 chmod +x $PKGTMP/etc/postinst.d/* || exit 1 mkdir -p $PKGTMP/etc/boot.d || exit 1 cp misdn.boot.d $PKGTMP/etc/boot.d/misdn || exit 1 tar -xzf mISDN-$VER.tar.gz || exit 1 cd mISDN || exit 1 make -j1 force || exit 1 make -j1 || exit 1 #HACK: omdat dit in het buildscript anders word aangeroepen. #depmod gaat niet goed ivm verschil tussen buildroot kernel versie en echte rm `which depmod` make -j1 INSTALL_PREFIX=$PKGTMP install || exit 1 pushd $PKGTMP/lib/modules/`uname -r`/extra/ || exit 1 #strippen, omdat driver anders vele megabytes word! strip --strip-unneeded * popd cd "$PKGTMP" || exit 1 makepkg -l n -c n $CWD/$NAME.pkg > /dev/null && echo $VER > $CWD/$NAME.version && arch > $CWD/$NAME.arch