summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2013-05-22 15:42:41 (GMT)
committerColin Watson <cjwatson@debian.org>2013-05-22 15:42:41 (GMT)
commit646440841475e2f2521f965b1ba99085204819cc (patch)
tree89556ae46e29b3ae19b2b8590f7daba771646222 /scripts
parent8d378c1d3a97bb8e9b904cb06fa4cc10c28415d6 (diff)
downloaddebootstrap-646440841475e2f2521f965b1ba99085204819cc.zip
debootstrap-646440841475e2f2521f965b1ba99085204819cc.tar.gz
debootstrap-646440841475e2f2521f965b1ba99085204819cc.tar.bz2
scripts/gutsy: Make the fake initctl pass through "initctl version" calls, used by such things as invoke-rc.d to figure out whether it's running under Upstart (LP: #1182540).
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gutsy1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/gutsy b/scripts/gutsy
index 90e1d5d..4e88b9e 100644
--- a/scripts/gutsy
+++ b/scripts/gutsy
@@ -161,6 +161,7 @@ echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/
mv "$TARGET/sbin/initctl" "$TARGET/sbin/initctl.REAL"
echo \
"#!/bin/sh
+if [ \"\$1\" = version ]; then exec /sbin/initctl.REAL \"\$@\"; fi
echo
echo \"Warning: Fake initctl called, doing nothing\"" > "$TARGET/sbin/initctl"
chmod 755 "$TARGET/sbin/initctl"