summarylogtreecommitdiffstats
path: root/nldev.run
diff options
context:
space:
mode:
Diffstat (limited to 'nldev.run')
-rw-r--r--nldev.run5
1 files changed, 5 insertions, 0 deletions
diff --git a/nldev.run b/nldev.run
index 7688b521d7a3..ff03addf5370 100644
--- a/nldev.run
+++ b/nldev.run
@@ -1,4 +1,9 @@
#!/bin/sh
[ -r conf ] && . ./conf
+mkdir /run/libudev-zero
+[ -f /run/nldev.pid ] && {
+ kill $(cat /run/nldev.pid)
+ rm /run/nldev.pid
+}
runpath=${runpath:-/usr/bin/smdev}
exec nldev -r $runpath $optargs 2>&1