b9348447b9
Check if Upstart exists before blocking the daemon. Not all dpkg based OS's have Upstart installed so this should help increase compatibility. Closes-Bug: #1251949 Change-Id: I2dcb1ff3641778b5653ca5762a728398adb57da1
12 lines
328 B
Bash
Executable file
12 lines
328 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
[ -n "$TARGET_ROOT" ]
|
|
|
|
sudo mv $TARGET_ROOT/sbin/start-stop-daemon.REAL $TARGET_ROOT/sbin/start-stop-daemon
|
|
if [ -f $TARGET_ROOT/sbin/initctl.REAL ]
|
|
then
|
|
sudo mv $TARGET_ROOT/sbin/initctl.REAL $TARGET_ROOT/sbin/initctl
|
|
fi
|
|
sudo mv $TARGET_ROOT/usr/sbin/invoke-rc.d.REAL $TARGET_ROOT/usr/sbin/invoke-rc.d
|