]> pere.pagekite.me Git - homepage.git/commitdiff
Generated.
authorPetter Reinholdtsen <pere@hungry.com>
Tue, 15 Jan 2013 13:41:03 +0000 (13:41 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Tue, 15 Jan 2013 13:41:03 +0000 (13:41 +0000)
blog/Modalias_strings___a_practical_way_to_map__stuff__to_hardware.html
blog/archive/2013/01/01.rss
blog/archive/2013/01/index.html
blog/index.html
blog/index.rss
blog/tags/debian/debian.rss
blog/tags/debian/index.html
blog/tags/english/english.rss
blog/tags/english/index.html

index f3111999c8a37c8314330c2b30a750ab2adaf6a3..9fc08af057d53fa3ab5b44ce31d9ffede65a4496 100644 (file)
@@ -41,7 +41,7 @@ values stands for.  It is in part based on information from
 this shell script:</p>
 
 <pre>
-cat $(find /sys -name modalias) | sort -u
+find /sys -name modalias -print0 | xargs -0 cat | sort -u
 </pre>
 
 <p>The supported modalias globs for a given kernel module can be found
@@ -233,7 +233,7 @@ hardware to packages when new stuff is inserted during run time.</p>
 one can use the following shell script:</p>
 
 <pre>
-  for id in $(cat $(find /sys -name modalias)|sort -u); do \
+  for id in $(find /sys -name modalias -print0 | xargs -0 cat | sort -u); do \
     echo "$id" ; \
     /sbin/modprobe --show-depends "$id"|sed 's/^/  /' ; \
   done
@@ -263,6 +263,10 @@ list is very long on my test machine):</p>
 packages to install when new hardware is plugged into a Debian
 machine, please send me an email or talk to me on
 <a href="irc://irc.debian.org/%23debian-devel">#debian-devel</a>.</p>
+
+<p><strong>Update 2013-01-15:</strong> Rewrite "cat $(find ...)" to
+"find ... -print0 | xargs -0 cat" to make sure it handle directories
+in /sys/ with space in them.</p>
 </div>
       
       <div class="tags">Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>.</div>
index d98c61c1fc3737b314355b0050e4f60afb9e08cb..ea3172a891589b51000cf35f364502cbc97b474e 100644 (file)
@@ -146,7 +146,7 @@ values stands for.  It is in part based on information from
 this shell script:&lt;/p&gt;
 
 &lt;pre&gt;
-cat $(find /sys -name modalias) | sort -u
+find /sys -name modalias -print0 | xargs -0 cat | sort -u
 &lt;/pre&gt;
 
 &lt;p&gt;The supported modalias globs for a given kernel module can be found
@@ -338,7 +338,7 @@ hardware to packages when new stuff is inserted during run time.&lt;/p&gt;
 one can use the following shell script:&lt;/p&gt;
 
 &lt;pre&gt;
-  for id in $(cat $(find /sys -name modalias)|sort -u); do \
+  for id in $(find /sys -name modalias -print0 | xargs -0 cat | sort -u); do \
     echo &quot;$id&quot; ; \
     /sbin/modprobe --show-depends &quot;$id&quot;|sed &#39;s/^/  /&#39; ; \
   done
@@ -368,6 +368,10 @@ list is very long on my test machine):&lt;/p&gt;
 packages to install when new hardware is plugged into a Debian
 machine, please send me an email or talk to me on
 &lt;a href=&quot;irc://irc.debian.org/%23debian-devel&quot;&gt;#debian-devel&lt;/a&gt;.&lt;/p&gt;
+
+&lt;p&gt;&lt;strong&gt;Update 2013-01-15:&lt;/strong&gt; Rewrite &quot;cat $(find ...)&quot; to
+&quot;find ... -print0 | xargs -0 cat&quot; to make sure it handle directories
+in /sys/ with space in them.&lt;/p&gt;
 </description>
        </item>
        
index a081ab31e87810a14219a7c75f0641b4b96bd53a..5b969a1f26dba25df0538ae56364fba70d5e83b9 100644 (file)
@@ -176,7 +176,7 @@ values stands for.  It is in part based on information from
 this shell script:</p>
 
 <pre>
-cat $(find /sys -name modalias) | sort -u
+find /sys -name modalias -print0 | xargs -0 cat | sort -u
 </pre>
 
 <p>The supported modalias globs for a given kernel module can be found
@@ -368,7 +368,7 @@ hardware to packages when new stuff is inserted during run time.</p>
 one can use the following shell script:</p>
 
 <pre>
-  for id in $(cat $(find /sys -name modalias)|sort -u); do \
+  for id in $(find /sys -name modalias -print0 | xargs -0 cat | sort -u); do \
     echo "$id" ; \
     /sbin/modprobe --show-depends "$id"|sed 's/^/  /' ; \
   done
@@ -399,6 +399,10 @@ packages to install when new hardware is plugged into a Debian
 machine, please send me an email or talk to me on
 <a href="irc://irc.debian.org/%23debian-devel">#debian-devel</a>.</p>
 
+<p><strong>Update 2013-01-15:</strong> Rewrite "cat $(find ...)" to
+"find ... -print0 | xargs -0 cat" to make sure it handle directories
+in /sys/ with space in them.</p>
+
       </div>
       <div class="tags">
         
index c387a6d82c2dcafa0a11ce53d0592f01f86a38f0..cf7afad37494ccface9e14e307f5b5a203fa8528 100644 (file)
@@ -163,7 +163,7 @@ values stands for.  It is in part based on information from
 this shell script:</p>
 
 <pre>
-cat $(find /sys -name modalias) | sort -u
+find /sys -name modalias -print0 | xargs -0 cat | sort -u
 </pre>
 
 <p>The supported modalias globs for a given kernel module can be found
@@ -355,7 +355,7 @@ hardware to packages when new stuff is inserted during run time.</p>
 one can use the following shell script:</p>
 
 <pre>
-  for id in $(cat $(find /sys -name modalias)|sort -u); do \
+  for id in $(find /sys -name modalias -print0 | xargs -0 cat | sort -u); do \
     echo "$id" ; \
     /sbin/modprobe --show-depends "$id"|sed 's/^/  /' ; \
   done
@@ -385,6 +385,10 @@ list is very long on my test machine):</p>
 packages to install when new hardware is plugged into a Debian
 machine, please send me an email or talk to me on
 <a href="irc://irc.debian.org/%23debian-devel">#debian-devel</a>.</p>
+
+<p><strong>Update 2013-01-15:</strong> Rewrite "cat $(find ...)" to
+"find ... -print0 | xargs -0 cat" to make sure it handle directories
+in /sys/ with space in them.</p>
 </div>
       <div class="tags">
         
index 096b4d00c66ad6c0f5f52101f7764bf0681eb9ab..ad2d6095001012141a50395e17d2de02eec99b80 100644 (file)
@@ -146,7 +146,7 @@ values stands for.  It is in part based on information from
 this shell script:&lt;/p&gt;
 
 &lt;pre&gt;
-cat $(find /sys -name modalias) | sort -u
+find /sys -name modalias -print0 | xargs -0 cat | sort -u
 &lt;/pre&gt;
 
 &lt;p&gt;The supported modalias globs for a given kernel module can be found
@@ -338,7 +338,7 @@ hardware to packages when new stuff is inserted during run time.&lt;/p&gt;
 one can use the following shell script:&lt;/p&gt;
 
 &lt;pre&gt;
-  for id in $(cat $(find /sys -name modalias)|sort -u); do \
+  for id in $(find /sys -name modalias -print0 | xargs -0 cat | sort -u); do \
     echo &quot;$id&quot; ; \
     /sbin/modprobe --show-depends &quot;$id&quot;|sed &#39;s/^/  /&#39; ; \
   done
@@ -368,6 +368,10 @@ list is very long on my test machine):&lt;/p&gt;
 packages to install when new hardware is plugged into a Debian
 machine, please send me an email or talk to me on
 &lt;a href=&quot;irc://irc.debian.org/%23debian-devel&quot;&gt;#debian-devel&lt;/a&gt;.&lt;/p&gt;
+
+&lt;p&gt;&lt;strong&gt;Update 2013-01-15:&lt;/strong&gt; Rewrite &quot;cat $(find ...)&quot; to
+&quot;find ... -print0 | xargs -0 cat&quot; to make sure it handle directories
+in /sys/ with space in them.&lt;/p&gt;
 </description>
        </item>
        
index c7653f396820e165eae3c012f73a6699254b38ac..a3a03e8db661c268bd88bd8028ac4c413b43799f 100644 (file)
@@ -146,7 +146,7 @@ values stands for.  It is in part based on information from
 this shell script:&lt;/p&gt;
 
 &lt;pre&gt;
-cat $(find /sys -name modalias) | sort -u
+find /sys -name modalias -print0 | xargs -0 cat | sort -u
 &lt;/pre&gt;
 
 &lt;p&gt;The supported modalias globs for a given kernel module can be found
@@ -338,7 +338,7 @@ hardware to packages when new stuff is inserted during run time.&lt;/p&gt;
 one can use the following shell script:&lt;/p&gt;
 
 &lt;pre&gt;
-  for id in $(cat $(find /sys -name modalias)|sort -u); do \
+  for id in $(find /sys -name modalias -print0 | xargs -0 cat | sort -u); do \
     echo &quot;$id&quot; ; \
     /sbin/modprobe --show-depends &quot;$id&quot;|sed &#39;s/^/  /&#39; ; \
   done
@@ -368,6 +368,10 @@ list is very long on my test machine):&lt;/p&gt;
 packages to install when new hardware is plugged into a Debian
 machine, please send me an email or talk to me on
 &lt;a href=&quot;irc://irc.debian.org/%23debian-devel&quot;&gt;#debian-devel&lt;/a&gt;.&lt;/p&gt;
+
+&lt;p&gt;&lt;strong&gt;Update 2013-01-15:&lt;/strong&gt; Rewrite &quot;cat $(find ...)&quot; to
+&quot;find ... -print0 | xargs -0 cat&quot; to make sure it handle directories
+in /sys/ with space in them.&lt;/p&gt;
 </description>
        </item>
        
index 2041575c1b5c099c09041d7e8b0b60e7330da6cb..121386426e39f5a289f38c8203b075ba9f7e6182 100644 (file)
@@ -175,7 +175,7 @@ values stands for.  It is in part based on information from
 this shell script:</p>
 
 <pre>
-cat $(find /sys -name modalias) | sort -u
+find /sys -name modalias -print0 | xargs -0 cat | sort -u
 </pre>
 
 <p>The supported modalias globs for a given kernel module can be found
@@ -367,7 +367,7 @@ hardware to packages when new stuff is inserted during run time.</p>
 one can use the following shell script:</p>
 
 <pre>
-  for id in $(cat $(find /sys -name modalias)|sort -u); do \
+  for id in $(find /sys -name modalias -print0 | xargs -0 cat | sort -u); do \
     echo "$id" ; \
     /sbin/modprobe --show-depends "$id"|sed 's/^/  /' ; \
   done
@@ -398,6 +398,10 @@ packages to install when new hardware is plugged into a Debian
 machine, please send me an email or talk to me on
 <a href="irc://irc.debian.org/%23debian-devel">#debian-devel</a>.</p>
 
+<p><strong>Update 2013-01-15:</strong> Rewrite "cat $(find ...)" to
+"find ... -print0 | xargs -0 cat" to make sure it handle directories
+in /sys/ with space in them.</p>
+
       </div>
       <div class="tags">
         
index 53debab083dc113d6c4a95e433b28fd7dd461583..f2032256cad5c3b67cf34e428efbf2b025eb7a38 100644 (file)
@@ -146,7 +146,7 @@ values stands for.  It is in part based on information from
 this shell script:&lt;/p&gt;
 
 &lt;pre&gt;
-cat $(find /sys -name modalias) | sort -u
+find /sys -name modalias -print0 | xargs -0 cat | sort -u
 &lt;/pre&gt;
 
 &lt;p&gt;The supported modalias globs for a given kernel module can be found
@@ -338,7 +338,7 @@ hardware to packages when new stuff is inserted during run time.&lt;/p&gt;
 one can use the following shell script:&lt;/p&gt;
 
 &lt;pre&gt;
-  for id in $(cat $(find /sys -name modalias)|sort -u); do \
+  for id in $(find /sys -name modalias -print0 | xargs -0 cat | sort -u); do \
     echo &quot;$id&quot; ; \
     /sbin/modprobe --show-depends &quot;$id&quot;|sed &#39;s/^/  /&#39; ; \
   done
@@ -368,6 +368,10 @@ list is very long on my test machine):&lt;/p&gt;
 packages to install when new hardware is plugged into a Debian
 machine, please send me an email or talk to me on
 &lt;a href=&quot;irc://irc.debian.org/%23debian-devel&quot;&gt;#debian-devel&lt;/a&gt;.&lt;/p&gt;
+
+&lt;p&gt;&lt;strong&gt;Update 2013-01-15:&lt;/strong&gt; Rewrite &quot;cat $(find ...)&quot; to
+&quot;find ... -print0 | xargs -0 cat&quot; to make sure it handle directories
+in /sys/ with space in them.&lt;/p&gt;
 </description>
        </item>
        
index 02dcad9aa70022da36b1b26600b4044d95559a12..348f2306946b197e1be78bfb98bb0627e2b1dd0f 100644 (file)
@@ -175,7 +175,7 @@ values stands for.  It is in part based on information from
 this shell script:</p>
 
 <pre>
-cat $(find /sys -name modalias) | sort -u
+find /sys -name modalias -print0 | xargs -0 cat | sort -u
 </pre>
 
 <p>The supported modalias globs for a given kernel module can be found
@@ -367,7 +367,7 @@ hardware to packages when new stuff is inserted during run time.</p>
 one can use the following shell script:</p>
 
 <pre>
-  for id in $(cat $(find /sys -name modalias)|sort -u); do \
+  for id in $(find /sys -name modalias -print0 | xargs -0 cat | sort -u); do \
     echo "$id" ; \
     /sbin/modprobe --show-depends "$id"|sed 's/^/  /' ; \
   done
@@ -398,6 +398,10 @@ packages to install when new hardware is plugged into a Debian
 machine, please send me an email or talk to me on
 <a href="irc://irc.debian.org/%23debian-devel">#debian-devel</a>.</p>
 
+<p><strong>Update 2013-01-15:</strong> Rewrite "cat $(find ...)" to
+"find ... -print0 | xargs -0 cat" to make sure it handle directories
+in /sys/ with space in them.</p>
+
       </div>
       <div class="tags">