mirror of
https://codeberg.org/landley/toybox.git
synced 2026-01-26 06:07:55 +00:00
Instead of warming, make logpath depend on the multiplexer being disabled.
This commit is contained in:
parent
5131a2bc6d
commit
5d1fd7a302
@ -2,13 +2,14 @@
|
||||
*
|
||||
* Copyright 2019 Rob Landley <rob@landley.net>
|
||||
*
|
||||
* I made it up. Must be built standalone to work. (Is its own multiplexer.)
|
||||
* Must be built standalone to work. (Is its own multiplexer.)
|
||||
|
||||
USE_LOGPATH(NEWTOY(logpath, 0, TOYFLAG_NOHELP|TOYFLAG_USR|TOYFLAG_BIN))
|
||||
|
||||
config LOGPATH
|
||||
bool "logpath"
|
||||
default n
|
||||
depends on !TOYBOX
|
||||
help
|
||||
usage: logpath ...
|
||||
|
||||
@ -19,10 +20,6 @@ config LOGPATH
|
||||
#define FOR_logpath
|
||||
#include "toys.h"
|
||||
|
||||
#if CFG_TOYBOX
|
||||
#warning Must be built standalone to work.
|
||||
#endif
|
||||
|
||||
void logpath_main(void)
|
||||
{
|
||||
char *log = getenv("LOGPATH"), *omnom = basename(*toys.argv), *s, *ss, *sss;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user