d06a1caafb
Corrected the if; then statement to follow bash convention. Change-Id: Ia3f80520bb9446c4feb5ce36dccffa2b1c1d72c4
14 lines
309 B
Bash
Executable file
14 lines
309 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
[ -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 rm $TARGET_ROOT/usr/sbin/policy-rc.d
|