summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Blumer <todd@sdgsystems.com>2006-07-07 16:30:11 +0200
committerRene Wagner <rw@handhelds.org>2006-07-07 16:30:11 +0200
commit3ef1fa653ca651b86304a80e54820e8e1b0dcda1 (patch)
tree730c279982993ce3ced3e0a505ab681951646688
parent636593b8ac15d5f930d62776a7b15475d006c1d3 (diff)
busybox: apply patch to fix "df <path>".
Signed-off-by: Rene Wagner <rw@handhelds.org>
-rw-r--r--org.handhelds.familiar/packages/busybox/busybox-1.00/df.patch29
-rw-r--r--org.handhelds.familiar/packages/busybox/busybox-1.01/df.patch29
-rw-r--r--org.handhelds.familiar/packages/busybox/busybox_1.00.bb3
-rw-r--r--org.handhelds.familiar/packages/busybox/busybox_1.01.bb2
4 files changed, 62 insertions, 1 deletions
diff --git a/org.handhelds.familiar/packages/busybox/busybox-1.00/df.patch b/org.handhelds.familiar/packages/busybox/busybox-1.00/df.patch
new file mode 100644
index 0000000..5acb28d
--- /dev/null
+++ b/org.handhelds.familiar/packages/busybox/busybox-1.00/df.patch
@@ -0,0 +1,29 @@
+--- busybox-1.00/coreutils/df.c 2004-08-02 20:14:01.000000000 -0400
++++ busybox-1.00/coreutils/df.c.new 2006-06-29 10:56:43.256528750 -0400
+@@ -117,6 +117,8 @@
+ }
+
+ if ((s.f_blocks > 0) || !mount_table){
++ int root_done = 0;
++
+ blocks_used = s.f_blocks - s.f_bfree;
+ blocks_percent_used = 0;
+ if (blocks_used + s.f_bavail) {
+@@ -125,14 +127,14 @@
+ ) / (blocks_used + s.f_bavail);
+ }
+
+- if (strcmp(device, "rootfs") == 0) {
+- continue;
+- } else if (strcmp(device, "/dev/root") == 0) {
++ if (strcmp(device, "/dev/root") == 0 || strcmp(device, "rootfs") == 0) {
++ if (root_done) continue;
+ /* Adjusts device to be the real root device,
+ * or leaves device alone if it can't find it */
+ if ((device = find_real_root_device_name()) == NULL) {
+ goto SET_ERROR;
+ }
++ root_done = 1;
+ }
+
+ #ifdef CONFIG_FEATURE_HUMAN_READABLE
diff --git a/org.handhelds.familiar/packages/busybox/busybox-1.01/df.patch b/org.handhelds.familiar/packages/busybox/busybox-1.01/df.patch
new file mode 100644
index 0000000..5acb28d
--- /dev/null
+++ b/org.handhelds.familiar/packages/busybox/busybox-1.01/df.patch
@@ -0,0 +1,29 @@
+--- busybox-1.00/coreutils/df.c 2004-08-02 20:14:01.000000000 -0400
++++ busybox-1.00/coreutils/df.c.new 2006-06-29 10:56:43.256528750 -0400
+@@ -117,6 +117,8 @@
+ }
+
+ if ((s.f_blocks > 0) || !mount_table){
++ int root_done = 0;
++
+ blocks_used = s.f_blocks - s.f_bfree;
+ blocks_percent_used = 0;
+ if (blocks_used + s.f_bavail) {
+@@ -125,14 +127,14 @@
+ ) / (blocks_used + s.f_bavail);
+ }
+
+- if (strcmp(device, "rootfs") == 0) {
+- continue;
+- } else if (strcmp(device, "/dev/root") == 0) {
++ if (strcmp(device, "/dev/root") == 0 || strcmp(device, "rootfs") == 0) {
++ if (root_done) continue;
+ /* Adjusts device to be the real root device,
+ * or leaves device alone if it can't find it */
+ if ((device = find_real_root_device_name()) == NULL) {
+ goto SET_ERROR;
+ }
++ root_done = 1;
+ }
+
+ #ifdef CONFIG_FEATURE_HUMAN_READABLE
diff --git a/org.handhelds.familiar/packages/busybox/busybox_1.00.bb b/org.handhelds.familiar/packages/busybox/busybox_1.00.bb
index 447bbad..8659a49 100644
--- a/org.handhelds.familiar/packages/busybox/busybox_1.00.bb
+++ b/org.handhelds.familiar/packages/busybox/busybox_1.00.bb
@@ -10,7 +10,7 @@ HOMEPAGE = "http://www.busybox.net"
LICENSE = "GPL"
SECTION = "base"
PRIORITY = "required"
-PR = "r33"
+PR = "r34"
SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
file://add-getkey-applet.patch;patch=1 \
@@ -22,6 +22,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
file://readlink.patch;patch=1 \
file://iproute-flush-cache.patch;patch=1;pnum=0 \
file://rmmod.patch;patch=1 \
+ file://df.patch;patch=1 \
file://below.patch;patch=1 \
file://fbset.patch;patch=1 \
file://mount-all-type.patch;patch=1 \
diff --git a/org.handhelds.familiar/packages/busybox/busybox_1.01.bb b/org.handhelds.familiar/packages/busybox/busybox_1.01.bb
index edb9fad..62482c6 100644
--- a/org.handhelds.familiar/packages/busybox/busybox_1.01.bb
+++ b/org.handhelds.familiar/packages/busybox/busybox_1.01.bb
@@ -10,6 +10,7 @@ HOMEPAGE = "http://www.busybox.net"
LICENSE = "GPL"
SECTION = "base"
PRIORITY = "required"
+PR = "r1"
DEFAULT_PREFERENCE = "-1"
DEFAULT_PREFERENCE_nslu2 = ""
@@ -28,6 +29,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
file://mount-all-type.patch;patch=1 \
file://readlink.patch;patch=1 \
file://rmmod.patch;patch=1 \
+ file://df.patch;patch=1 \
file://udhcpscript.patch;patch=1 \
file://defconfig \
file://busybox-cron \