mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
Oskar Liljeblad writes:
Here's a fix for the hard-coded device name in fbset.
This commit is contained in:
parent
b6e58d2b9a
commit
5f28455c6e
@ -376,6 +376,7 @@ extern int bb_default_error_retval;
|
|||||||
#endif
|
#endif
|
||||||
# define VC_FORMAT "/dev/vc/%d"
|
# define VC_FORMAT "/dev/vc/%d"
|
||||||
# define LOOP_FORMAT "/dev/loop/%d"
|
# define LOOP_FORMAT "/dev/loop/%d"
|
||||||
|
# define FB_0 "/dev/fb/0"
|
||||||
#else
|
#else
|
||||||
# define CURRENT_VC "/dev/tty0"
|
# define CURRENT_VC "/dev/tty0"
|
||||||
# define VC_1 "/dev/tty1"
|
# define VC_1 "/dev/tty1"
|
||||||
@ -394,6 +395,7 @@ extern int bb_default_error_retval;
|
|||||||
#endif
|
#endif
|
||||||
# define VC_FORMAT "/dev/tty%d"
|
# define VC_FORMAT "/dev/tty%d"
|
||||||
# define LOOP_FORMAT "/dev/loop%d"
|
# define LOOP_FORMAT "/dev/loop%d"
|
||||||
|
# define FB_0 "/dev/fb0"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//#warning put these in .o files
|
//#warning put these in .o files
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "busybox.h"
|
#include "busybox.h"
|
||||||
|
|
||||||
#define DEFAULTFBDEV "/dev/fb0"
|
#define DEFAULTFBDEV FB_0
|
||||||
#define DEFAULTFBMODE "/etc/fb.modes"
|
#define DEFAULTFBMODE "/etc/fb.modes"
|
||||||
|
|
||||||
static const int OPT_CHANGE = (1 << 0);
|
static const int OPT_CHANGE = (1 << 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user