u-isdn/tools/d_insmod

19 lines
379 B
Bash

#!/bin/sh
#
## Diese Version von "insmod" fügt ein Modul nicht in diesen, sondern in
## den nächsten Kernel ein...
FILE=$1
VERSION=${VERSION:-$(${TOPDIR}/tools/getversion)}
MODDIR=${MODDIR:-/lib/modules}
dir=${MODDIR}/$VERSION
echo isdn/d_$FILE >>$dir/../modules.isdn.all
rm -f $dir/isdn/d_$FILE
(
cp $FILE $dir/isdn/d_$FILE
strip --strip-debug $dir/isdn/d_$FILE
) &
exit 0