aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcore/eudev/build9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/eudev/build b/core/eudev/build
index 297c9920..68a37e7b 100755
--- a/core/eudev/build
+++ b/core/eudev/build
@@ -1,5 +1,10 @@
#!/bin/sh -e
+kinstall() {
+ mkdir -p "${2%/*}"; cp "$3" "$2"
+ chmod "$1" "$2"
+}
+
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
@@ -11,8 +16,8 @@ make
make DESTDIR="$1" install
# Install runit service.
-install -Dm755 udevd.run "$1/etc/sv/udevd/run"
+kinstall 755 "$1/etc/sv/udevd/run" udevd.run
ln -s /run/runit/supervise.udevd "$1/etc/sv/udevd/supervise"
# Install sysmgr service.
-install -Dm755 udevd.run "$1/etc/sysmgr/udevd"
+kinstall 755 "$1/etc/sysmgr/udevd" udevd.run