From 83788da25055c4a2775c3d78a29255ee671141bb Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Wed, 20 Mar 2002 17:38:37 +0000 Subject: * include/applets.h (CONFIG_LOSETUP): New. * include/usage.h (losetup_trivial_usage, losetup_full_usage): New. * util-linux/Makefile: Add losetup.o. * util-linux/config.in: Add losetup prompt. * util-linux/losetup.c: New. --- include/applets.h | 3 +++ include/usage.h | 9 +++++++++ 2 files changed, 12 insertions(+) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index 0d310bdc3..6760fc5a1 100644 --- a/include/applets.h +++ b/include/applets.h @@ -269,6 +269,9 @@ #ifdef CONFIG_LOGREAD APPLET(logread, logread_main, _BB_DIR_SBIN) #endif +#ifdef CONFIG_LOSETUP + APPLET(losetup, losetup_main, _BB_DIR_SBIN) +#endif #ifdef CONFIG_LS APPLET(ls, ls_main, _BB_DIR_BIN) #endif diff --git a/include/usage.h b/include/usage.h index c4ad0440b..6692aa520 100644 --- a/include/usage.h +++ b/include/usage.h @@ -989,6 +989,15 @@ #define logread_full_usage \ "Shows the messages from syslogd (using circular buffer)." +#define losetup_trivial_usage \ + "[OPTION]... LOOPDEVICE FILE\n" \ + "or: losetup [OPTION]... -d LOOPDEVICE" +#define losetup_full_usage \ + "Associate LOOPDEVICE with FILE.\n\n" \ + "Options:\n" \ + "\t-d\t\tDisassociate LOOPDEVICE.\n" \ + "\t-o OFFSET\tStart OFFSET bytes into FILE.\n" + #ifdef CONFIG_FEATURE_LS_TIMESTAMPS #define USAGE_LS_TIMESTAMPS(a) a #else -- cgit v1.2.3