aboutsummaryrefslogtreecommitdiffstats
path: root/main/udev-init-scripts/udev-init-scripts.post-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-07-17 08:01:26 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-07-17 08:01:26 +0000
commit6e428c0d94cbff633df9bbb44f91a5db2f073833 (patch)
tree32ff9454e9b8dbe866eab40db505bf6963c38e81 /main/udev-init-scripts/udev-init-scripts.post-install
parentc33b3d2aaeaa4f82c29acf718c4284bf5ec18275 (diff)
downloadaports-6e428c0d94cbff633df9bbb44f91a5db2f073833.tar.bz2
aports-6e428c0d94cbff633df9bbb44f91a5db2f073833.tar.xz
main/udev-init-scripts: add missing install scripts
Diffstat (limited to 'main/udev-init-scripts/udev-init-scripts.post-install')
-rw-r--r--main/udev-init-scripts/udev-init-scripts.post-install10
1 files changed, 10 insertions, 0 deletions
diff --git a/main/udev-init-scripts/udev-init-scripts.post-install b/main/udev-init-scripts/udev-init-scripts.post-install
new file mode 100644
index 0000000000..af7cc155b3
--- /dev/null
+++ b/main/udev-init-scripts/udev-init-scripts.post-install
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+if ! [ -e /etc/runlevels/sysinit/udev ]; then
+ exit 0
+fi
+
+if ! [ /etc/runlevels/sysinit/udev-trigger ]; then
+ ln -s /etc/init.d/udev-trigger /etc/runlevels/sysinit/udev-trigger
+fi
+