]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(ppcmac): shellcheck for modules.d/90ppcmac
authorHarald Hoyer <harald@redhat.com>
Fri, 26 Mar 2021 09:29:22 +0000 (10:29 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 29 Mar 2021 08:53:07 +0000 (10:53 +0200)
modules.d/90ppcmac/.shchkdir [new file with mode: 0644]
modules.d/90ppcmac/load-thermal.sh
modules.d/90ppcmac/module-setup.sh

diff --git a/modules.d/90ppcmac/.shchkdir b/modules.d/90ppcmac/.shchkdir
new file mode 100644 (file)
index 0000000..e69de29
index f690967d3958a67ab1b5caf3b2c16130b1de800e..72f2581d000e6c77fe9ca254c4bf1bce901c7025 100644 (file)
@@ -6,7 +6,8 @@
 [ -r /proc/cpuinfo ] || exit 0
 
 load_windfarm() {
-    local pm_model="$(sed -n '/model/p' /proc/cpuinfo)"
+    local pm_model
+    pm_model="$(sed -n '/model/p' /proc/cpuinfo)"
     pm_model="${pm_model##*: }"
 
     # load quietly and respect the blacklist
index 0e1556b3eb59c309ff28583d5782cfdba0d66719..83f54de64ee2944d656e01bdebb5793f503e8dc3 100644 (file)
@@ -31,7 +31,8 @@ depends() {
 # called by dracut
 installkernel() {
     pmac_model() {
-        local pm_model="$(grep model /proc/cpuinfo)"
+        local pm_model
+        pm_model="$(grep model /proc/cpuinfo)"
         echo "${pm_model##*: }"
     }