From: Petter Reinholdtsen Date: Tue, 15 Jan 2013 13:41:03 +0000 (+0000) Subject: Generated. X-Git-Url: https://pere.pagekite.me/gitweb/homepage.git/commitdiff_plain/25df59ef3a279f9eecfe2a7c8de2f36f74b4e647?hp=1ef3da82c93c5032ee628b3a85c31ea6db0c25e1 Generated. --- diff --git a/blog/Modalias_strings___a_practical_way_to_map__stuff__to_hardware.html b/blog/Modalias_strings___a_practical_way_to_map__stuff__to_hardware.html index f3111999c8..9fc08af057 100644 --- a/blog/Modalias_strings___a_practical_way_to_map__stuff__to_hardware.html +++ b/blog/Modalias_strings___a_practical_way_to_map__stuff__to_hardware.html @@ -41,7 +41,7 @@ values stands for. It is in part based on information from this shell script:

-cat $(find /sys -name modalias) | sort -u
+find /sys -name modalias -print0 | xargs -0 cat | sort -u
 

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.

one can use the following shell script:

-  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):

packages to install when new hardware is plugged into a Debian machine, please send me an email or talk to me on #debian-devel.

+ +

Update 2013-01-15: Rewrite "cat $(find ...)" to +"find ... -print0 | xargs -0 cat" to make sure it handle directories +in /sys/ with space in them.

Tags: debian, english.
diff --git a/blog/archive/2013/01/01.rss b/blog/archive/2013/01/01.rss index d98c61c1fc..ea3172a891 100644 --- a/blog/archive/2013/01/01.rss +++ b/blog/archive/2013/01/01.rss @@ -146,7 +146,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 @@ -338,7 +338,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 @@ -368,6 +368,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> diff --git a/blog/archive/2013/01/index.html b/blog/archive/2013/01/index.html index a081ab31e8..5b969a1f26 100644 --- a/blog/archive/2013/01/index.html +++ b/blog/archive/2013/01/index.html @@ -176,7 +176,7 @@ values stands for. It is in part based on information from this shell script:

-cat $(find /sys -name modalias) | sort -u
+find /sys -name modalias -print0 | xargs -0 cat | sort -u
 

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.

one can use the following shell script:

-  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
 #debian-devel.

+

Update 2013-01-15: Rewrite "cat $(find ...)" to +"find ... -print0 | xargs -0 cat" to make sure it handle directories +in /sys/ with space in them.

+
diff --git a/blog/index.html b/blog/index.html index c387a6d82c..cf7afad374 100644 --- a/blog/index.html +++ b/blog/index.html @@ -163,7 +163,7 @@ values stands for. It is in part based on information from this shell script:

-cat $(find /sys -name modalias) | sort -u
+find /sys -name modalias -print0 | xargs -0 cat | sort -u
 

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.

one can use the following shell script:

-  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):

packages to install when new hardware is plugged into a Debian machine, please send me an email or talk to me on #debian-devel.

+ +

Update 2013-01-15: Rewrite "cat $(find ...)" to +"find ... -print0 | xargs -0 cat" to make sure it handle directories +in /sys/ with space in them.

diff --git a/blog/index.rss b/blog/index.rss index 096b4d00c6..ad2d609500 100644 --- a/blog/index.rss +++ b/blog/index.rss @@ -146,7 +146,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 @@ -338,7 +338,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 @@ -368,6 +368,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> diff --git a/blog/tags/debian/debian.rss b/blog/tags/debian/debian.rss index c7653f3968..a3a03e8db6 100644 --- a/blog/tags/debian/debian.rss +++ b/blog/tags/debian/debian.rss @@ -146,7 +146,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 @@ -338,7 +338,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 @@ -368,6 +368,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> diff --git a/blog/tags/debian/index.html b/blog/tags/debian/index.html index 2041575c1b..121386426e 100644 --- a/blog/tags/debian/index.html +++ b/blog/tags/debian/index.html @@ -175,7 +175,7 @@ values stands for. It is in part based on information from this shell script:

-cat $(find /sys -name modalias) | sort -u
+find /sys -name modalias -print0 | xargs -0 cat | sort -u
 

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.

one can use the following shell script:

-  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
 #debian-devel.

+

Update 2013-01-15: Rewrite "cat $(find ...)" to +"find ... -print0 | xargs -0 cat" to make sure it handle directories +in /sys/ with space in them.

+
diff --git a/blog/tags/english/english.rss b/blog/tags/english/english.rss index 53debab083..f2032256ca 100644 --- a/blog/tags/english/english.rss +++ b/blog/tags/english/english.rss @@ -146,7 +146,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 @@ -338,7 +338,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 @@ -368,6 +368,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> diff --git a/blog/tags/english/index.html b/blog/tags/english/index.html index 02dcad9aa7..348f230694 100644 --- a/blog/tags/english/index.html +++ b/blog/tags/english/index.html @@ -175,7 +175,7 @@ values stands for. It is in part based on information from this shell script:

-cat $(find /sys -name modalias) | sort -u
+find /sys -name modalias -print0 | xargs -0 cat | sort -u
 

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.

one can use the following shell script:

-  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
 #debian-devel.

+

Update 2013-01-15: Rewrite "cat $(find ...)" to +"find ... -print0 | xargs -0 cat" to make sure it handle directories +in /sys/ with space in them.

+