]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Ugh, using backticks instead of $()
authorVictor Lowther <victor.lowther@gmail.com>
Fri, 5 Jun 2009 02:57:30 +0000 (21:57 -0500)
committerVictor Lowther <victor.lowther@gmail.com>
Fri, 5 Jun 2009 03:02:37 +0000 (22:02 -0500)
Get that evilness out of dracut, please.

modules.d/50plymouth/install

index e5ba79cbb6d7fc8fdde0b8491b03b5f3fa820a5d..162106db972901910a6fb0b4ea4ef4f67c76049e 100755 (executable)
@@ -5,8 +5,6 @@ inst_hook pre-trigger 10 "$moddir"/plymouth-pretrigger.sh
 inst_hook emergency 50 "$moddir"/plymouth-emergency.sh
 inst "$moddir"/cryptroot-ask.sh /sbin/cryptroot-ask
 # Include KMS capable drm drivers
-for modname in `find "/lib/modules/$kernel/kernel/drivers/gpu/drm" -name '*.ko'`; do
-  if nm -uPA $modname | grep -q drm_crtc_init; then
-    instmods $modname
-  fi
+for modname in $(find "/lib/modules/$kernel/kernel/drivers/gpu/drm" -name '*.ko'); do
+    nm -uPA $modname | grep -q drm_crtc_init && instmods $modname
 done