Print an error if the environment is not set up for hotplugging - smdev - suckless mdev
HTML git clone git://git.suckless.org/smdev
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 0534a1001fb7990c2837bc4cf76f7f4824a890c1
DIR parent 58018dfb567aa80dc11bd81446fce1764ad628aa
HTML Author: sin <sin@2f30.org>
Date: Thu, 22 Aug 2013 13:31:08 +0100
Print an error if the environment is not set up for hotplugging
Diffstat:
M smdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/smdev.c b/smdev.c
@@ -59,7 +59,7 @@ main(int argc, char *argv[])
recurse("/sys/devices", populatedev);
else
if (dohotplug() < 0)
- return 1;
+ eprintf("Environment not set up correctly for hotplugging\n");
return 0;
}