summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authormaximilian attems <max@dual.(none)>2007-09-01 10:56:59 +0200
committermaximilian attems <max@dual.(none)>2007-09-01 10:56:59 +0200
commit971f6f778035b49afaea9be8408f90cccb6b548b (patch)
treefbd8200ffdfc7db237899f3725b1dd16d9ab54da /scripts
parent928ed0689705f52a757e23478783b4ade1423944 (diff)
downloadinitramfs-tools-971f6f778035b49afaea9be8408f90cccb6b548b.tar.gz
initramfs-tools-971f6f778035b49afaea9be8408f90cccb6b548b.zip
init-top/framebuffer: Check that fb minor is below 32.
you can only have up to 32 fb devices going from fb0 to fb31.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/init-top/framebuffer4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/init-top/framebuffer b/scripts/init-top/framebuffer
index 08e36d2..9292024 100755
--- a/scripts/init-top/framebuffer
+++ b/scripts/init-top/framebuffer
@@ -88,7 +88,9 @@ fi
if [ -e /proc/fb ]; then
while read fbno desc; do
- mknod /dev/fb${fbno} c 29 ${fbno}
+ if [ $(($fbnum < 32)) ]; then
+ mknod /dev/fb${fbno} c 29 ${fbno}
+ fi
done < /proc/fb
else
mknod /dev/fb0 c 29 0