diff options
author | Colin Watson <cjwatson@debian.org> | 2013-05-22 15:42:41 (GMT) |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2013-05-22 15:42:41 (GMT) |
commit | 646440841475e2f2521f965b1ba99085204819cc (patch) | |
tree | 89556ae46e29b3ae19b2b8590f7daba771646222 /scripts/gutsy | |
parent | 8d378c1d3a97bb8e9b904cb06fa4cc10c28415d6 (diff) | |
download | debootstrap-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/gutsy')
-rw-r--r-- | scripts/gutsy | 1 |
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" |