]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blobdiff - ipfire-logos/ipfire-logos.nm
ipfire-logos: Add deps/scriptlets for plymouth theme.
[people/arne_f/ipfire-3.x.git] / ipfire-logos / ipfire-logos.nm
index 9947523222c5b724a6d42c58fc8af25838f24db1..45e5aa5e38aaa502502a8a5ad099526d208c3547 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = ipfire-logos
 version    = 1
-release    = 1
+release    = 2
 arch       = noarch
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
@@ -31,5 +31,24 @@ end
 packages
        package %{name}
                provides = system-logos
+
+               prerequires
+                       plymouth-scripts
+               end
+
+               requires
+                       plymouth-plugin-script
+               end
+
+               script postin
+                       %{sbindir}/plymouth-set-default-theme ipfire-logo || :
+               end
+
+               script postun
+                       if [ "$(%{sbindir}/plymouth-set-default-theme)" = "ipfire-logo" ]; then
+                               %{sbindir}/plymouth-set-default-theme --reset
+                               /usr/lib/plymouth/plymouth-generate-initrd
+                       fi
+               end
        end
 end