summarylogtreecommitdiffstats
path: root/nltrigger.early
diff options
context:
space:
mode:
authorPlaton Ryzhikov2021-06-03 12:24:37 +0300
committerPlaton Ryzhikov2021-06-03 12:24:37 +0300
commit83f8325904a27c03a0f32743c32eb2d0162188a5 (patch)
treea3f120132305fb64d9069ad723b99f26cf6f6c2b /nltrigger.early
parenteb24d281373d038eb4f77b4756cc154fd006f384 (diff)
downloadaur-83f8325904a27c03a0f32743c32eb2d0162188a5.tar.gz
update for use with libudev-zero
Diffstat (limited to 'nltrigger.early')
-rw-r--r--nltrigger.early20
1 files changed, 20 insertions, 0 deletions
diff --git a/nltrigger.early b/nltrigger.early
new file mode 100644
index 000000000000..ae018138c13c
--- /dev/null
+++ b/nltrigger.early
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# sourcing our current rc.conf requires this to be a bash script
+. /usr/lib/rc/functions
+
+case "$1" in
+ start)
+ stat_busy "Triggering udev uevents"
+ nltrigger add all
+ ret=$?
+ (( ret )) && stat_die nltrigger
+ add_daemon nltrigger
+ stat_done nltrigger
+ ;;
+ *)
+ echo "usage: $0 {start}"
+ exit 1
+ ;;
+esac
+