summaryrefslogtreecommitdiffstats
path: root/projectroot/sbin/enable-rc-once
diff options
context:
space:
mode:
Diffstat (limited to 'projectroot/sbin/enable-rc-once')
-rw-r--r--projectroot/sbin/enable-rc-once11
1 files changed, 11 insertions, 0 deletions
diff --git a/projectroot/sbin/enable-rc-once b/projectroot/sbin/enable-rc-once
new file mode 100644
index 000000000..d95c6cb4b
--- /dev/null
+++ b/projectroot/sbin/enable-rc-once
@@ -0,0 +1,11 @@
+#!/bin/sh
+if [ -n "$1" ]; then
+ rm -f "$DESTDIR/etc/rc.once.d/.done/$1"
+fi
+rm -f "$DESTDIR/etc/rc.once.d/.done/rc-once"
+
+if [ -f "$DESTDIR/lib/systemd/system/rc-once.service" ]; then
+ if [ ! -e $DESTDIR/system-update ]; then
+ ln -sf etc/rc.once.d $DESTDIR/system-update
+ fi
+fi