From d504b5081cfa1cb5a8d2eb9721276213277362f3 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Tue, 11 Oct 2005 22:12:19 +0000 Subject: [PATCH] Check for existence of files in /lib/modules before running depscan.sh. This replaces the mips-specific check and makes it portable. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@859 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 7 ++++++- targets/support/post-kmerge.sh | 17 ++++++++++++----- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 28ede4bc..5982a85c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.351 2005/10/10 20:38:03 rocket Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.352 2005/10/11 22:12:19 wolf31o2 Exp $ + + 11 Oct 2005; Chris Gianelloni + targets/support/post-kmerge.sh: + Check for existence of files in /lib/modules before running depscan.sh. This + replaces the mips-specific check and makes it portable. 10 Oct 2005; Eric Edgar modules/generic_stage_target.py: diff --git a/targets/support/post-kmerge.sh b/targets/support/post-kmerge.sh index f8397d35..a21dd750 100755 --- a/targets/support/post-kmerge.sh +++ b/targets/support/post-kmerge.sh @@ -5,10 +5,17 @@ /usr/sbin/env-update source /etc/profile -case ${clst_mainarch} in - mips) ;; - *) +# Only run depscan.sh if modules exist +if [ -n "$(ls /lib/modules)" ] +then /sbin/depscan.sh find /lib/modules -name modules.dep -exec touch {} \; - ;; -esac +fi + +#case ${clst_mainarch} in +# mips) ;; +# *) +# /sbin/depscan.sh +# find /lib/modules -name modules.dep -exec touch {} \; +# ;; +#esac -- 2.26.2