Oskar Liljeblad writes:

Here's a fix for the hard-coded device name in fbset.
This commit is contained in:
Eric Andersen 2003-11-14 03:11:29 +00:00
parent b6e58d2b9a
commit 5f28455c6e
2 changed files with 3 additions and 1 deletions

View File

@ -376,6 +376,7 @@ extern int bb_default_error_retval;
#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 @@ extern int bb_default_error_retval;
#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

View File

@ -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);