]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[daemon] Ship default configuration files config-file
authorRay Strode <rstrode@redhat.com>
Tue, 23 Mar 2010 21:54:32 +0000 (17:54 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 23 Mar 2010 22:00:50 +0000 (18:00 -0400)
This commit adds plymouthd.defaults and plymouthd.conf.

The former is for distributions to override, and the latter
is for administrators to change.

scripts/plymouth-populate-initrd.in
src/plymouthd.conf [new file with mode: 0644]
src/plymouthd.defaults [new file with mode: 0644]

index 0214ee3cf8d66c589a3efbcdc7ba083f069402d6..7f0c341669aa5961ec58076687a753bbf833ab5c 100755 (executable)
@@ -7,6 +7,8 @@
 [ -z "$PLYMOUTH_PLUGIN_PATH" ] && PLYMOUTH_PLUGIN_PATH="$(plymouth --get-splash-plugin-path)"
 [ -z "$PLYMOUTH_LOGO_FILE" ] && PLYMOUTH_LOGO_FILE="@logofile@"
 [ -z "$PLYMOUTH_THEME_NAME" ] && PLYMOUTH_THEME_NAME=$(plymouth-set-default-theme)
+[ -z "$PLYMOUTH_CONFDIR" ] && PLYMOUTH_CONFDIR="@PLYMOUTH_CONF_DIR@"
+[ -z "$PLYMOUTH_POLICYDIR" ] && PLYMOUTH_POLICYDIR="@PLYMOUTH_POLICY_DIR@"
 
 if [ -z "$PLYMOUTH_POPULATE_SOURCE_FUNCTIONS" ]; then
 
@@ -78,6 +80,8 @@ inst ${PLYMOUTH_DATADIR}/plymouth/themes/details/details.plymouth $INITRDDIR
 inst ${PLYMOUTH_PLUGIN_PATH}/details.so $INITRDDIR
 inst ${PLYMOUTH_LOGO_FILE} $INITRDDIR
 inst @RELEASE_FILE@ $INITRDDIR
+inst ${PLYMOUTH_POLICYDIR}/plymouthd.defaults $INITRDDIR
+inst ${PLYMOUTH_CONFDIR}/plymouthd.conf $INITRDDIR
 
 if [ -z "$PLYMOUTH_THEME_NAME" ]; then
     echo "No default plymouth plugin is set" > /dev/stderr
diff --git a/src/plymouthd.conf b/src/plymouthd.conf
new file mode 100644 (file)
index 0000000..66a92d2
--- /dev/null
@@ -0,0 +1,3 @@
+# Administrator customizations go in this file
+#[Daemon]
+#Theme=fade-in
diff --git a/src/plymouthd.defaults b/src/plymouthd.defaults
new file mode 100644 (file)
index 0000000..a165491
--- /dev/null
@@ -0,0 +1,8 @@
+# Distribution defaults. Changes to this file will get overwritten during
+# upgrades.
+[Daemon]
+Theme=fade-in
+Foo=bar
+
+[z]
+ffoo=yo