/[baselayout]/trunk/sbin/update-modules
Gentoo

Diff of /trunk/sbin/update-modules

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 250 Revision 251
18 18
19# Reset the sorting order since we depend on it 19# Reset the sorting order since we depend on it
20export LC_COLLATE="C" 20export LC_COLLATE="C"
21 21
22depdir() { 22depdir() {
23 dep="$(egrep '[[:space:]]*depfile' ${CFGFILE} | tail -n 1 | sed -e 's/depfile=//' -e 's,/[^/]*$,,')" 23 dep="`egrep '[[:space:]]*depfile' ${CFGFILE} | tail -n 1 | sed -e 's/depfile=//' -e 's,/[^/]*$,,'`"
24 if [ -z "${dep}" ] 24 if [ -z "${dep}" ]
25 then 25 then
26 dep=/lib/modules/$(uname -r) 26 dep=/lib/modules/`uname -r`
27 fi 27 fi
28 28
29 echo ${dep} 29 echo ${dep}
30} 30}
31 31
43 echo "force specified, (re)generating file anyway." 43 echo "force specified, (re)generating file anyway."
44 fi 44 fi
45 fi 45 fi
46fi 46fi
47 47
48if [ 0 -ne "$(id -u)" ] 48if [ 0 -ne "`id -u`" ]
49then 49then
50 echo "You have to be root to do this." 50 echo "You have to be root to do this."
51 exit 2 51 exit 2
52fi 52fi
53 53
68for cfg in ${MODDIR}/* ${CONF} 68for cfg in ${MODDIR}/* ${CONF}
69do 69do
70 [ -d ${cfg} ] && continue 70 [ -d ${cfg} ] && continue
71 71
72 [ ! -r ${cfg} ] && continue 72 [ ! -r ${cfg} ] && continue
73
74 [ -n "`echo ${cfg} | awk '!/~$|\.bak$/ { print $0 }'`" ] || continue
73 75
74 echo "### update-modules: start processing ${cfg}" >> ${TMPFILE} 76 echo "### update-modules: start processing ${cfg}" >> ${TMPFILE}
75 77
76 if [ -x ${cfg} ] 78 if [ -x ${cfg} ]
77 then 79 then

Legend:
Removed from v.250  
changed lines
  Added in v.251

  ViewVC Help
Powered by ViewVC 1.1.20