Oskar Liljeblad writes:
Here's a fix for the hard-coded device name in fbset.
diff --git a/include/libbb.h b/include/libbb.h
index 21ea316..f1f4f5c 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -376,6 +376,7 @@
#endif
# define VC_FORMAT "/dev/vc/%d"
# define LOOP_FORMAT "/dev/loop/%d"
+# define FB_0 "/dev/fb/0"
#else
# define CURRENT_VC "/dev/tty0"
# define VC_1 "/dev/tty1"
@@ -394,6 +395,7 @@
#endif
# define VC_FORMAT "/dev/tty%d"
# define LOOP_FORMAT "/dev/loop%d"
+# define FB_0 "/dev/fb0"
#endif
//#warning put these in .o files
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index f66ebe5..b5f57b1 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -35,7 +35,7 @@
#include <sys/ioctl.h>
#include "busybox.h"
-#define DEFAULTFBDEV "/dev/fb0"
+#define DEFAULTFBDEV FB_0
#define DEFAULTFBMODE "/etc/fb.modes"
static const int OPT_CHANGE = (1 << 0);