summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorhydrajump <wave@hydrajump.com>2014-05-06 21:36:28 +0200
committerhydrajump <wave@hydrajump.com>2014-05-06 21:36:28 +0200
commitcaa6a529196c5c414bb4ca1365da329caf6131a9 (patch)
treeb192dfe986c92a6b8a65ea86705bdb67ba937a7c /scripts
parentaa44239b2ffc35f547c384e7604353015f114f23 (diff)
downloadvyatta-cfg-system-caa6a529196c5c414bb4ca1365da329caf6131a9.tar.gz
vyatta-cfg-system-caa6a529196c5c414bb4ca1365da329caf6131a9.zip
Fix to enable ec2-fetch-ssh-public-key init script
The init script was not running on boot because the init script symlinks were not created in /etc/rcX.d for the runlevels: 2,3,4,5. This fix runs the update-rc.d command in the is_amazon_ec2_ami function, thus creating the required symlinks and also updating /etc/init.d/.depends.on.start.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install/install-image-existing6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/install/install-image-existing b/scripts/install/install-image-existing
index f8aef0ba..5c042d48 100755
--- a/scripts/install/install-image-existing
+++ b/scripts/install/install-image-existing
@@ -44,10 +44,8 @@ is_amazon_ec2_ami () {
if [ -n "$ami_id" ]; then
echo "Installing on VyOS AMI"
- # Create a temporary file to provide conditional
- # check for init.d config in
- # /debian/vyatta-cfg-system.postinst.in L215
- touch ${INST_ROOT}${VYATTA_CFG_DIR}/.aws
+ # Create init script links for /etc/init.d/ec2-fetch-ssh-public-key
+ chroot $INST_ROOT update-rc.d ec2-fetch-ssh-public-key defaults &>/dev/null
fi
}