[BusyBox] rescuept applet
Thierry Laronde
thierry at cri74.org
Thu Aug 23 08:35:35 UTC 2001
`rescuept' is a small program, found in the linux-utils, that allows the
rescue of a lost Partition Table (hence the pt). This might be of some
interest for rescue programs, and adds 4752 bytes if I'm not mistaken.
This is a straightforward adaptation. Here are the files.
Cheers,
--
Thierry LARONDE, Centre de Ressources Informatiques, Archamps - France
http://www.cri74.org/
-------------- next part --------------
--- /home/thierry/tmp/busybox/applets.h Tue Aug 21 18:18:59 2001
+++ applets.h Thu Aug 23 15:35:07 2001
@@ -344,6 +347,9 @@
#ifdef BB_RENICE
APPLET(renice, renice_main, _BB_DIR_USR_BIN)
#endif
+#ifdef BB_RESCUEPT
+ APPLET(rescuept, rescuept_main, _BB_DIR_USR_SBIN)
+#endif
#ifdef BB_RESET
APPLET(reset, reset_main, _BB_DIR_USR_BIN)
#endif
--- /home/thierry/tmp/busybox/usage.h Tue Aug 21 18:18:59 2001
+++ usage.h Thu Aug 23 15:34:20 2001
@@ -1332,6 +1356,11 @@
"Changes priority of running processes. Allowed priorities range\n" \
"from 20 (the process runs only when nothing else is running) to 0\n" \
"(default priority) to -20 (almost nothing else ever gets to run)."
+#define rescuept_trivial_usage \
+ "/dev/xxx"
+#define rescuept_full_usage \
+ "Try to recover a lost Partition Table. The output is a proposed\n" \
+ "partition table, in the form of input to sfdisk."
#define reset_trivial_usage \
""
--- /home/thierry/tmp/busybox/Config.h Wed Aug 22 01:34:10 2001
+++ Config.h Thu Aug 23 15:35:32 2001
#define BB_REBOOT
//#define BB_RENICE
-#define BB_RESET
+//#define BB_RESCUEPT
+#define BB_RESET
#define BB_RM
#define BB_RMDIR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rescuept.c.gz
Type: application/octet-stream
Size: 7853 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20010823/1fa485e6/attachment.obj
More information about the busybox
mailing list