summarylogtreecommitdiffstats
path: root/gen-sddropin
diff options
context:
space:
mode:
authorM0Rf302016-01-19 02:38:38 +0100
committerM0Rf302016-01-19 02:38:38 +0100
commit5cb2e9a7aa86609066fd6614662b12f143e8a204 (patch)
tree8203525132018f93bb2229ada776af9711d2fc14 /gen-sddropin
parent6d1fad3091bdd0c5eb7553d54b19fb389653b588 (diff)
downloadaur-5cb2e9a7aa86609066fd6614662b12f143e8a204.tar.gz
updated to 2.3.1
Diffstat (limited to 'gen-sddropin')
-rw-r--r--gen-sddropin19
1 files changed, 19 insertions, 0 deletions
diff --git a/gen-sddropin b/gen-sddropin
new file mode 100644
index 000000000000..b3ee8c8de8b1
--- /dev/null
+++ b/gen-sddropin
@@ -0,0 +1,19 @@
+#!/usr/bin/bash
+FILE=/etc/systemd/system/vdr.service.d/wait-for-devices.conf
+
+if [ -d /dev/dvb/adapter0 ]; then
+ mkdir -p $(dirname $FILE)
+ echo "Replace or create the file $FILE"
+ echo "with the following"
+ echo
+ echo '[Unit]'
+
+ cd /dev
+ for dev in dvb/adapter*/*; do
+ stringpart=$(tr / - <<< $dev)
+ echo "Wants=dev-$stringpart.device"
+ echo "After=dev-$stringpart.device"
+ done
+else
+ echo "No DVB devices detected. No systemd rule needed"
+fi \ No newline at end of file