mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 23:47:49 +00:00
busybox: update upstream patches
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
d88c331475
commit
67f4afbc7b
30
packages/sysutils/busybox/patches/busybox-1.17.0-acpid.diff
Normal file
30
packages/sysutils/busybox/patches/busybox-1.17.0-acpid.diff
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
diff -urpN busybox-1.17.0/util-linux/acpid.c busybox-1.17.0-acpid/util-linux/acpid.c
|
||||||
|
--- busybox-1.17.0/util-linux/acpid.c 2010-06-24 04:40:43.000000000 +0200
|
||||||
|
+++ busybox-1.17.0-acpid/util-linux/acpid.c 2010-07-12 06:24:00.000000000 +0200
|
||||||
|
@@ -9,9 +9,25 @@
|
||||||
|
#include "libbb.h"
|
||||||
|
|
||||||
|
#include <linux/input.h>
|
||||||
|
+#ifndef EV_SW
|
||||||
|
+# define EV_SW 0x05
|
||||||
|
+#endif
|
||||||
|
+#ifndef EV_KEY
|
||||||
|
+# define EV_KEY 0x01
|
||||||
|
+#endif
|
||||||
|
+#ifndef SW_LID
|
||||||
|
+# define SW_LID 0x00
|
||||||
|
+#endif
|
||||||
|
#ifndef SW_RFKILL_ALL
|
||||||
|
-# define SW_RFKILL_ALL 3
|
||||||
|
+# define SW_RFKILL_ALL 0x03
|
||||||
|
#endif
|
||||||
|
+#ifndef KEY_POWER
|
||||||
|
+# define KEY_POWER 116 /* SC System Power Down */
|
||||||
|
+#endif
|
||||||
|
+#ifndef KEY_SLEEP
|
||||||
|
+# define KEY_SLEEP 142 /* SC System Sleep */
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
|
||||||
|
/*
|
||||||
|
* acpid listens to ACPI events coming either in textual form
|
13
packages/sysutils/busybox/patches/busybox-1.17.0-mktemp.diff
Normal file
13
packages/sysutils/busybox/patches/busybox-1.17.0-mktemp.diff
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff -urpN busybox-1.17.0/debianutils/mktemp.c busybox-1.17.0-mktemp/debianutils/mktemp.c
|
||||||
|
--- busybox-1.17.0/debianutils/mktemp.c 2010-06-24 04:40:43.000000000 +0200
|
||||||
|
+++ busybox-1.17.0-mktemp/debianutils/mktemp.c 2010-07-12 03:42:48.000000000 +0200
|
||||||
|
@@ -50,7 +50,8 @@ int mktemp_main(int argc UNUSED_PARAM, c
|
||||||
|
opts = getopt32(argv, "dqtp:", &path);
|
||||||
|
|
||||||
|
chp = argv[optind] ? argv[optind] : xstrdup("tmp.XXXXXX");
|
||||||
|
- chp = concat_path_file(path, chp);
|
||||||
|
+ if (chp[0] != '/' || (opts & 8))
|
||||||
|
+ chp = concat_path_file(path, chp);
|
||||||
|
|
||||||
|
if (opts & 1) { /* -d */
|
||||||
|
if (mkdtemp(chp) == NULL)
|
12
packages/sysutils/busybox/patches/busybox-1.17.0-wget.diff
Normal file
12
packages/sysutils/busybox/patches/busybox-1.17.0-wget.diff
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -urpN busybox-1.17.0/networking/wget.c busybox-1.17.0-wget/networking/wget.c
|
||||||
|
--- busybox-1.17.0/networking/wget.c 2010-06-24 04:40:43.000000000 +0200
|
||||||
|
+++ busybox-1.17.0-wget/networking/wget.c 2010-07-12 03:27:57.000000000 +0200
|
||||||
|
@@ -50,7 +50,7 @@ static void progress_meter(int flag)
|
||||||
|
}
|
||||||
|
|
||||||
|
bb_progress_update(&G.pmt, G.curfile, G.beg_range, G.transferred,
|
||||||
|
- G.chunked ? 0 : G.content_len + G.beg_range);
|
||||||
|
+ G.chunked ? 0 : G.beg_range + G.transferred + G.content_len);
|
||||||
|
|
||||||
|
if (flag == 0) {
|
||||||
|
/* last call to progress_meter */
|
Loading…
x
Reference in New Issue
Block a user