2013-02-13 22:16:00 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-04-03 02:24:15 +00:00
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
2013-02-13 22:16:00 +00:00
|
|
|
|
|
|
|
[ -n "$TARGET_ROOT" ]
|
|
|
|
|
|
|
|
sudo mv $TARGET_ROOT/sbin/start-stop-daemon.REAL $TARGET_ROOT/sbin/start-stop-daemon
|
2014-03-26 13:24:51 +00:00
|
|
|
|
2014-07-01 09:27:41 +00:00
|
|
|
if [ -f $TARGET_ROOT/sbin/initctl.REAL ]; then
|
2013-11-17 03:42:17 +00:00
|
|
|
sudo mv $TARGET_ROOT/sbin/initctl.REAL $TARGET_ROOT/sbin/initctl
|
|
|
|
fi
|
2014-03-26 13:24:51 +00:00
|
|
|
|
|
|
|
sudo rm $TARGET_ROOT/usr/sbin/policy-rc.d
|