A better way to do this would be to use the register-module command. Joshua Kwan wrote: > Author: joshk > Date: Sat May 29 14:46:51 2004 > New Revision: 16454 > > Modified: > trunk/packages/ddetect/archdetect-sparc-linux.c > trunk/packages/ddetect/hw-detect.sh > Log: > add string.h for archdetect-sparc-linux, and add sunhme to /target/etc/modules > for prebaseconfig > > > Modified: trunk/packages/ddetect/archdetect-sparc-linux.c > ============================================================================== > --- trunk/packages/ddetect/archdetect-sparc-linux.c (original) > +++ trunk/packages/ddetect/archdetect-sparc-linux.c Sat May 29 14:46:51 2004 > @@ -1,5 +1,6 @@ > #include "archdetect.h" > #include <sys/utsname.h> > +#include <string.h> > > const char *subarch_analyze(void) > { > > Modified: trunk/packages/ddetect/hw-detect.sh > ============================================================================== > --- trunk/packages/ddetect/hw-detect.sh (original) > +++ trunk/packages/ddetect/hw-detect.sh Sat May 29 14:46:51 2004 > @@ -15,6 +15,8 @@ > MISSING_MODULES_LIST="" > SUBARCH="$(archdetect)" > > +prebaseconfig=/usr/lib/prebaseconfig.d/30hw-detect > + > # This is a hack, but we don't have a better idea right now. > # See Debian bug #136743 > if [ -x /sbin/depmod ]; then > @@ -194,6 +196,7 @@ > case "$SUBARCH" in > sparc/sparc32) > echo "sunhme:Sun Happy Meal 10/100 Ethernet driver" > + echo "echo sunhme >> /target/etc/modules" >> $prebaseconfig > ;; > esac > # ide-mod and ide-probe-mod are needed for older (2.4.20) kernels > @@ -548,7 +551,6 @@ > log "Detected PCMCIA, installing pcmcia-cs." > apt-install pcmcia-cs || true > > - prebaseconfig=/usr/lib/prebaseconfig.d/30hw-detect > echo "mkdir /target/etc/pcmcia 2>/dev/null || true" \ > >>$prebaseconfig > echo "cp /etc/pcmcia/config.opts /target/etc/pcmcia/config.opts" \ >
-- see shy jo
signature.asc
Description: Digital signature