<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
{font-family:"Segoe UI Semibold";
panose-1:2 11 7 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I am going through the boot sequence of the device trying to understand how these kernel modules are inserted (need to add a value to a parameter ) and I am having a hard time understanding it. On my device there is a file /etc/init.d/modutils.sh<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It should fail at “[ -f /proc/modules ] || exit 0” and there are no other files that insmod or modprobe on this device. I am missing something stupid and would love for someone to point it out to me.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">#!/bin/sh<o:p></o:p></p>
<p class="MsoNormal">### BEGIN INIT INFO<o:p></o:p></p>
<p class="MsoNormal"># Provides: module-init-tools<o:p></o:p></p>
<p class="MsoNormal"># Required-Start:<o:p></o:p></p>
<p class="MsoNormal"># Required-Stop:<o:p></o:p></p>
<p class="MsoNormal"># Should-Start: checkroot<o:p></o:p></p>
<p class="MsoNormal"># Should-stop:<o:p></o:p></p>
<p class="MsoNormal"># Default-Start: S<o:p></o:p></p>
<p class="MsoNormal"># Default-Stop:<o:p></o:p></p>
<p class="MsoNormal"># Short-Description: Process /etc/modules.<o:p></o:p></p>
<p class="MsoNormal"># Description: Load the modules listed in /etc/modules.<o:p></o:p></p>
<p class="MsoNormal">### END INIT INFO<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">LOAD_MODULE=modprobe<o:p></o:p></p>
<p class="MsoNormal">[ -f /proc/modules ] || exit 0<o:p></o:p></p>
<p class="MsoNormal">[ -f /etc/modules ] || [ -d /etc/modules-load.d ] || exit 0<o:p></o:p></p>
<p class="MsoNormal">[ -e /sbin/modprobe ] || LOAD_MODULE=insmod<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">if [ ! -f /lib/modules/`uname -r`/modules.dep ]; then<o:p></o:p></p>
<p class="MsoNormal"> [ "$VERBOSE" != no ] && echo "Calculating module dependencies ..."<o:p></o:p></p>
<p class="MsoNormal"> depmod -Ae<o:p></o:p></p>
<p class="MsoNormal">fi<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">loaded_modules=" "<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">process_file() {<o:p></o:p></p>
<p class="MsoNormal"> file=$1<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> (cat $file; echo; ) |<o:p></o:p></p>
<p class="MsoNormal"> while read module args<o:p></o:p></p>
<p class="MsoNormal"> do<o:p></o:p></p>
<p class="MsoNormal"> case "$module" in<o:p></o:p></p>
<p class="MsoNormal"> \#*|"") continue ;;<o:p></o:p></p>
<p class="MsoNormal"> esac<o:p></o:p></p>
<p class="MsoNormal"> [ -n "$(echo $loaded_modules | grep " $module ")" ] && continue<o:p></o:p></p>
<p class="MsoNormal"> [ "$VERBOSE" != no ] && echo -n "$module "<o:p></o:p></p>
<p class="MsoNormal"> eval "$LOAD_MODULE $module $args >/dev/null 2>&1"<o:p></o:p></p>
<p class="MsoNormal"> loaded_modules="${loaded_modules}${module} "<o:p></o:p></p>
<p class="MsoNormal"> done<o:p></o:p></p>
<p class="MsoNormal">}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[ "$VERBOSE" != no ] && echo -n "Loading modules: "<o:p></o:p></p>
<p class="MsoNormal">[ -f /etc/modules ] && process_file /etc/modules<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[ -d /etc/modules-load.d ] || exit 0<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">for f in /etc/modules-load.d/*.conf; do<o:p></o:p></p>
<p class="MsoNormal"> process_file $f<o:p></o:p></p>
<p class="MsoNormal">done<o:p></o:p></p>
<p class="MsoNormal">[ "$VERBOSE" != no ] && echo<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">exit 0<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span lang="EN-GB" style="mso-fareast-language:EN-GB">Mark Bishop<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-GB" style="font-size:8.0pt;mso-fareast-language:EN-GB">Sr. Firmware/Software Engineer – Microwave Subsystems</span></b><b><span lang="EN-GB" style="font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB"><o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-GB" style="font-size:8.0pt;mso-fareast-language:EN-GB"><o:p> </o:p></span></b></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="621" style="width:465.75pt;border-collapse:collapse">
<tbody>
<tr style="height:25.5pt">
<td width="621" colspan="2" style="width:465.75pt;border:none;border-top:solid #8DBEE6 1.5pt;padding:.05in .05in .05in .05in;height:25.5pt">
<p class="MsoNormal"><span style="color:#595959"><img width="364" height="38" id="Picture_x0020_1" src="cid:image001.png@01D3E79D.DFF7D840" alt="cid:image001.png@01D281ED.A45F0A90"></span><b><span style="font-size:14.0pt;font-family:"Segoe UI Semibold","sans-serif";color:#595959"><o:p></o:p></span></b></p>
</td>
</tr>
<tr style="height:.2in">
<td width="283" valign="top" style="width:212.6pt;padding:.05in .05in .05in .05in;height:.2in">
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Segoe UI","sans-serif";color:#262626">4726 Eisenhower Blvd.</span><span style="font-size:8.0pt;font-family:"Segoe UI","sans-serif";color:#262626"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Segoe UI","sans-serif";color:#262626">Tampa, FL 33634<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Segoe UI","sans-serif";color:#262626">USA</span><span style="font-size:8.0pt;font-family:"Segoe UI","sans-serif";color:#262626"><o:p></o:p></span></p>
</td>
<td width="338" valign="top" style="width:253.15pt;padding:.05in .05in .05in .05in;height:.2in">
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Segoe UI","sans-serif";color:#262626"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Segoe UI","sans-serif";color:#262626">T +1 813 901 7293</span><span style="font-size:8.0pt;font-family:"Segoe UI","sans-serif";color:#262626"><o:p></o:p></span></p>
</td>
</tr>
<tr style="height:13.5pt">
<td width="283" valign="top" style="width:212.6pt;padding:.05in .05in .05in .05in;height:13.5pt">
<p class="MsoNormal"><b><span lang="EN" style="font-size:8.0pt;font-family:"Segoe UI","sans-serif";color:#1F497D"><a href="mailto:mbishop@smithsinterconnectinc.com"><span style="color:blue">mbishop@smithsinterconnectinc.com</span></a></span></b><span style="font-size:8.0pt;font-family:"Segoe UI","sans-serif";color:blue"><o:p></o:p></span></p>
</td>
<td width="338" valign="top" style="width:253.15pt;padding:.05in .05in .05in .05in;height:13.5pt">
<p class="MsoNormal"><span style="color:#1F497D"><a href="http://www.smithsinterconnect.com/"><b><span lang="EN" style="font-size:8.0pt;font-family:"Segoe UI","sans-serif";color:#0076BB">smithsinterconnect.com</span></b></a></span><span style="font-size:8.0pt;font-family:"Segoe UI","sans-serif";color:#0076BB"><o:p></o:p></span></p>
</td>
</tr>
<tr style="height:.2in">
<td width="621" colspan="2" valign="top" style="width:465.75pt;padding:.05in .05in .05in .05in;height:.2in">
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Segoe UI","sans-serif";color:#0076BB">TRAK MICROWAVE IS NOW SMITHS INTERCONNECT!</span></b><b><span style="font-size:8.0pt;font-family:"Segoe UI","sans-serif";color:#838383"><o:p></o:p></span></b></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>This e-mail contains proprietary information some or all of which may be legally privileged. It is intended for the recipient only. If an addressing or transmission error has misdirected this e-mail, please notify the authority by replying to this e-mail. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail. In addition, information contained in or attached to this e-mail may be subject to either 22 C.F.R. Parts 120?130, or 15 C.F.R. Parts 730-774. These regulations prohibit the release or disclosure of certain information contained herein to anyone who is not a U.S. citizen or permanent resident alien, without a license first having been issued. Failure to observe such requirements is a violation of U.S. law that carries serious penalties.
</body>
</html>