summaryrefslogtreecommitdiff
path: root/recipes/fbset/fbset-init
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/fbset/fbset-init')
-rw-r--r--recipes/fbset/fbset-init/default-fbset3
-rwxr-xr-xrecipes/fbset/fbset-init/fbset.sh4
2 files changed, 7 insertions, 0 deletions
diff --git a/recipes/fbset/fbset-init/default-fbset b/recipes/fbset/fbset-init/default-fbset
new file mode 100644
index 0000000000..5c163a7f7c
--- /dev/null
+++ b/recipes/fbset/fbset-init/default-fbset
@@ -0,0 +1,3 @@
+# Uncomment and set value below to one of modes from /etc/fb.modes
+# or alternatively to "-xres <width> -yres <height>"
+#FBSET_MODE="vga"
diff --git a/recipes/fbset/fbset-init/fbset.sh b/recipes/fbset/fbset-init/fbset.sh
new file mode 100755
index 0000000000..900a1d4182
--- /dev/null
+++ b/recipes/fbset/fbset-init/fbset.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+. /etc/default/fbset
+[ -n "$FBSET_MODE" ] && fbset -n $FBSET_MODE