diff options
author | Eric Andersen <andersen@codepoet.org> | 1999-11-27 20:34:28 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 1999-11-27 20:34:28 +0000 |
commit | 1667fb4b633e8a250a17aea782baa18fc872d9d7 (patch) | |
tree | de5d7c942b780d43e67e2a97fca128597f80b7b8 | |
parent | c054b21f7d0420b1f8f8100a17fb14de9c947ef2 (diff) | |
download | busybox-w32-1667fb4b633e8a250a17aea782baa18fc872d9d7.tar.gz busybox-w32-1667fb4b633e8a250a17aea782baa18fc872d9d7.tar.bz2 busybox-w32-1667fb4b633e8a250a17aea782baa18fc872d9d7.zip |
Fixes
-rw-r--r-- | Makefile | 12 | ||||
-rw-r--r-- | umount.c | 9 | ||||
-rw-r--r-- | util-linux/umount.c | 9 |
3 files changed, 19 insertions, 11 deletions
@@ -80,6 +80,9 @@ LIBRARIES= | |||
80 | OBJECTS=$(shell ./busybox.sh) | 80 | OBJECTS=$(shell ./busybox.sh) |
81 | CFLAGS+= -DBB_VER='"$(VERSION)"' | 81 | CFLAGS+= -DBB_VER='"$(VERSION)"' |
82 | CFLAGS+= -DBB_BT='"$(BUILDTIME)"' | 82 | CFLAGS+= -DBB_BT='"$(BUILDTIME)"' |
83 | ifdef BB_INIT_RC_EXIT_CMD | ||
84 | CFLAGS += -DBB_INIT_CMD_IF_RC_SCRIPT_EXITS=${BB_INIT_RC_EXIT_CMD} | ||
85 | endif | ||
83 | 86 | ||
84 | all: busybox busybox.links | 87 | all: busybox busybox.links |
85 | 88 | ||
@@ -89,7 +92,7 @@ busybox: $(OBJECTS) | |||
89 | 92 | ||
90 | busybox.links: | 93 | busybox.links: |
91 | - ./busybox.mkll | sort >$@ | 94 | - ./busybox.mkll | sort >$@ |
92 | 95 | ||
93 | clean: | 96 | clean: |
94 | - rm -f $(PROG) busybox.links *~ *.o core | 97 | - rm -f $(PROG) busybox.links *~ *.o core |
95 | - rm -rf busybox_install | 98 | - rm -rf busybox_install |
@@ -97,19 +100,14 @@ clean: | |||
97 | distclean: clean | 100 | distclean: clean |
98 | - rm -f $(PROG) | 101 | - rm -f $(PROG) |
99 | 102 | ||
100 | force: | ||
101 | |||
102 | $(OBJECTS): busybox.def.h internal.h Makefile | 103 | $(OBJECTS): busybox.def.h internal.h Makefile |
103 | 104 | ||
104 | install: busybox busybox.links | 105 | install: busybox busybox.links |
105 | ./install.sh $(PREFIX) | 106 | ./install.sh $(PREFIX) |
106 | 107 | ||
107 | whichversion: | ||
108 | @echo $(VERSION) | ||
109 | |||
110 | |||
111 | dist: release | 108 | dist: release |
112 | 109 | ||
113 | release: distclean | 110 | release: distclean |
114 | (cd .. ; rm -rf busybox-$(VERSION) ; cp -a busybox busybox-$(VERSION); rm -rf busybox-$(VERSION)/CVS busybox-$(VERSION)/.cvsignore ; tar -cvzf busybox-$(VERSION).tar.gz busybox-$(VERSION)) | 111 | (cd .. ; rm -rf busybox-$(VERSION) ; cp -a busybox busybox-$(VERSION); rm -rf busybox-$(VERSION)/CVS busybox-$(VERSION)/.cvsignore ; tar -cvzf busybox-$(VERSION).tar.gz busybox-$(VERSION)) |
115 | 112 | ||
113 | |||
@@ -73,8 +73,13 @@ umount_all(int useMtab) | |||
73 | while ((m = getmntent (mountTable)) != 0) { | 73 | while ((m = getmntent (mountTable)) != 0) { |
74 | char *blockDevice = m->mnt_fsname; | 74 | char *blockDevice = m->mnt_fsname; |
75 | #if ! defined BB_MTAB | 75 | #if ! defined BB_MTAB |
76 | if (strcmp (blockDevice, "/dev/root") == 0) | 76 | if (strcmp (blockDevice, "/dev/root") == 0) { |
77 | blockDevice = (getfsfile ("/"))->fs_spec; | 77 | struct fstab* fstabItem; |
78 | fstabItem = getfsfile ("/"); | ||
79 | if (fstabItem != NULL) { | ||
80 | blockDevice = fstabItem->fs_spec; | ||
81 | } | ||
82 | } | ||
78 | #endif | 83 | #endif |
79 | /* Don't umount /proc when doing umount -a */ | 84 | /* Don't umount /proc when doing umount -a */ |
80 | if (strcmp (blockDevice, "proc") == 0) | 85 | if (strcmp (blockDevice, "proc") == 0) |
diff --git a/util-linux/umount.c b/util-linux/umount.c index 061bb9b16..3bd86814e 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c | |||
@@ -73,8 +73,13 @@ umount_all(int useMtab) | |||
73 | while ((m = getmntent (mountTable)) != 0) { | 73 | while ((m = getmntent (mountTable)) != 0) { |
74 | char *blockDevice = m->mnt_fsname; | 74 | char *blockDevice = m->mnt_fsname; |
75 | #if ! defined BB_MTAB | 75 | #if ! defined BB_MTAB |
76 | if (strcmp (blockDevice, "/dev/root") == 0) | 76 | if (strcmp (blockDevice, "/dev/root") == 0) { |
77 | blockDevice = (getfsfile ("/"))->fs_spec; | 77 | struct fstab* fstabItem; |
78 | fstabItem = getfsfile ("/"); | ||
79 | if (fstabItem != NULL) { | ||
80 | blockDevice = fstabItem->fs_spec; | ||
81 | } | ||
82 | } | ||
78 | #endif | 83 | #endif |
79 | /* Don't umount /proc when doing umount -a */ | 84 | /* Don't umount /proc when doing umount -a */ |
80 | if (strcmp (blockDevice, "proc") == 0) | 85 | if (strcmp (blockDevice, "proc") == 0) |